[wp-hackers] Issue with embedding video links?

Otto otto at ottodestruct.com
Fri Dec 14 18:15:55 UTC 2012


Couldn't find a ticket for it, so I made one:
http://core.trac.wordpress.org/ticket/22944

-Otto


On Fri, Dec 14, 2012 at 12:10 PM, Otto <otto at ottodestruct.com> wrote:
> 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.
>
> -Otto
>
>
> 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.
>>
>> -Otto
>>
>>
>> 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.
>>> http://www.geeksaresexy.net/2012/12/13/wordpress-3-5-removes-embed-code-from-posts/#dsq-content
>>>
>>> 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"
>>> allowfullscreen></iframe>
>>>
>>> along with some text before and after in a scheduled post.
>>>
>>> When it publishes the embed code gets removed, including the link to the
>>> video.
>>>
>>> I know that using a standard link will work, but should this be getting
>>> removed, or is it a bug?
>>>
>>>
>>> Rich
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list