[wp-hackers] Issue with embedding video links?
otto at ottodestruct.com
Fri Dec 14 18:08:48 UTC 2012
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