[wp-hackers] Issue with embedding video links?
otto at ottodestruct.com
Fri Dec 14 18:10:49 UTC 2012
Note that this only happens when using code that triggers the filter,
like the iframe or object or embed or anything like that. If you use
the normal oEmbed process (just paste in the Youtube link on a line by
itself), then the publishing works fine.
On Fri, Dec 14, 2012 at 12:08 PM, Otto <otto at ottodestruct.com> wrote:
> Confirmed, I can reproduce this on a localhost install. Schedule the
> post, and it gets cleaned when it posts.
> If I disable kses' filters by commenting out the unfiltered_html check
> in kses_init(), then it doesn't happen and the post posts fine.
> So what I think is going on is that in the publish action, the kses
> filters are being added. This is because the "current user" is the
> cron process, and that call is not authenticated, so the
> unfiltered_html cap does not apply, so it's filtered.
> On Fri, Dec 14, 2012 at 10:49 AM, Rich Pedley <elfin at elfden.co.uk> wrote:
>> I saw this posted on a blog I frequent and followed up with them about it.
>> Then I did a few tests on WordPress 3.5, with theme - Twenty Eleven, and
>> with all other plugins deactivated.
>> I used the embed code from Youtube:
>> <iframe width="560" height="315"
>> src="http://www.youtube.com/embed/cBlRbrB_Gnc" frameborder="0"
>> along with some text before and after in a scheduled post.
>> When it publishes the embed code gets removed, including the link to the
>> I know that using a standard link will work, but should this be getting
>> removed, or is it a bug?
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
More information about the wp-hackers