WordPress.org

Ready to get started?Download WordPress

Forums

Latest wordpress stripping youtube embeds (not iframes) on scheduled posts (19 posts)

  1. lolcaption
    Member
    Posted 1 year ago #

    Hi There,

    I've seen many threads around the place talking about iframes being stripped out when people use the visual editor, etc. but that's not the issue I'm having.

    My issue is that for years now I've used youtube embeds (old embed code). I create a post, add the embed code via the html editor (which changed to 'text' since the last version it seems), schedule the post and save it.

    If I come back and check it later it's fine, embed is still there.

    But now since the latest update (3.5). As soon as the post goes live the embed code gets stripped and a blank post gets published. Whereas I've never once had this happen since the latest version (and have thousands of video posts).

    It's a real pain in the backside as I then have to go try find the video the post related to (titles are often commentary on the video and don't often give an idea of what the video was called).

    Is there a way to disable this? I don't like to use the oembed method as it adds additional steps to the process (manually writing additional tag content) and when the video fails or is removed it leave's the raw link in the post body. I'd rather the video with 'content removed' as it lets the user know why the video isn't working (i.e. youtube removed it or the user deleted it, etc.)

    Also a note on how to make it work manually:
    Once the post has published and failed (stripped code resulting in a blank post). I can then edit the article, add the embed code again and hit update. Then it will post correctly.

  2. lolcaption
    Member
    Posted 1 year ago #

    I just stumbled across this:
    http://core.trac.wordpress.org/ticket/22944

    Which appears to be the problem.

    Is there a way to apply the patch in 3.5? and have it gracefully removed when the 3.5.1 update rolls around?

  3. lolcaption
    Member
    Posted 1 year ago #

    i.e. copy the patched post.php over the top of the 3.5 released post.php? Any dramas with doing that?

  4. alipop
    Member
    Posted 1 year ago #

    I'm having the same issue.

    It happens with all Soundcloud embeds I have in scheduled posts. It strips the embed code out completely when it publishes them (if they're scheduled).

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    You ought to create a thread on the issue if you require support, Alipop.

  6. lolcaption
    Member
    Posted 1 year ago #

    So is it safe to replace the 3.5 posts.php with the patched version pending release in 3.5.1?

    I assume when 3.5.1 official update rolls around this interim patch wont cause any dramas?

  7. holeytonal
    Member
    Posted 1 year ago #

    I have the same problem too. Drives me nuts. And means my posts often miss the Hype machine bot which brings in a lot of traffic. I look forward to the fix in 3.5.1

  8. brettbum
    Member
    Posted 1 year ago #

    I see a very similar (possibly worse) problem as well.

    On one laptop, it strips both the iframe code and the old youtube embed code. It does this whenever someone saves a draft, publishes a post, schedules a post or updates an existing post. Ergo it is not possible to embed a youtube video in any scenario....

    From one laptop.

    On my other laptop, it works just fine.???!???

    It doesn't work on an old laptop running xp, it does work on a laptop running windows 7.

    I have deactivated the visual editor to no effect.

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    This is a known issue with scheduled posts and markup in WordPress 3.5. This should be resolved in 3.5.1 (due out shortly).

  10. brettbum
    Member
    Posted 1 year ago #

    I tested this just now with g 3.5.1-RC1-23335 via the WordPress Beta Tester Plugin.

    3.5.1... did not fix the problem.

    This is one of those issues that can't really wait for an update, so I guess on this particular site I'll have to roll back to 3.4.2.

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    3.5.1... did not fix the problem.

    WordPress 3.5.1 hasn't been released yet...

  12. brettbum
    Member
    Posted 1 year ago #

    yes I know.

    I tested this just now with g 3.5.1-RC1-23335

  13. esmi
    Forum Moderator
    Posted 1 year ago #

    It's not ready for release yet!

  14. brettbum
    Member
    Posted 1 year ago #

    yes I know, I mentioned it still does not work when I tested it. :) Sorry, bailing from this thread and my apologies to anyone who is subscribed.

  15. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    In my quick test, the 3.5.1 version does appear to work correctly for the scheduled posts case. It won't go back and make posts you made before 3.5.1 magically fix themselves though. You need to go edit those posts and fix them manually.

  16. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    On one laptop, it strips both the iframe code and the old youtube embed code. It does this whenever someone saves a draft, publishes a post, schedules a post or updates an existing post. Ergo it is not possible to embed a youtube video in any scenario....

    From one laptop.

    On my other laptop, it works just fine.???!???

    Sorry, missed this bit.

    There is no reason it would work on one computer and not another, because the process doesn't happen in the browser.

    What users are you logged in as on each machine? Same user?

  17. Dan & Jennifer
    Member
    Posted 1 year ago #

    Hi there.

    I'm running 3.5.1 and am seeing issues with code being stripped in several test cases in the editor (and widget areas) when I save the post.

    Google Adsense code is being stripped, MailChimp Code is being stripped.
    This also happen when pasting these codes into a text widget in the side bar.

    Note: this does not happen when I'm logged in as the top level super admin.
    It ONLY happens when I'm logged in as a sub-site administrator.
    WTF???

    http://www.screencast.com/t/Z3jlv6HNacC - the code in the red box is being stripped.

    http://www.screencast.com/t/b7JLNLEUteJP - again, the code in the red box is being stripped on save.

  18. Dan & Jennifer
    Member
    Posted 1 year ago #

    Here's a screencast of what happens with the Monkey code:
    http://www.screencast.com/t/5bcszojECTq

  19. @Dan & Jennifer: It's impolite and couter productive to interrupt another poster's ongoing thread with a question of your own and it causes significant problems for the forum's volunteers. Please post your own topic and mark it NSFW in the title.

Topic Closed

This topic has been closed to new replies.

About this Topic