[wp-hackers] Issue with embedding video links?

Rich Pedley elfin at elfden.co.uk
Sat Dec 15 08:20:31 UTC 2012


Thanks Otto.

Rich

On 14/12/2012 18:15, Otto wrote:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2221 / Virus Database: 2634/5459 - Release Date: 12/14/12
>
>



More information about the wp-hackers mailing list