WordPress.org

Ready to get started?Download WordPress

Forums

WP 3.0.5 bug? (35 posts)

  1. Pavel Holoborodko
    Member
    Posted 3 years ago #

    Just upgraded to WP 3.0.5. .... and now I cannot insert img tags in comments. They just eaten up by the WP - source code in the published comment is empty.

    I tried different themes - same result.

    Also I tried to insert images using filter add_filter("comment_text",...) (I develop plugin which renders LaTeX equations into images) - same result.

    Under admin or logged out - same result.

    Also, I cannot see img tags in comments when I browse them through admin ("Comments" menu) and in front-end pages/posts.

    And one more - pre tags in comments also are being eaten up by WP 3.0.5 - nothing get through sanitization/security enhancement???

    I have strong feeling this is related to new feature of WP 3.0.5:
    "Enhancement: Force HTML filtering on comment text in the admin"

    Any idea what is going on?

  2. Pavel Holoborodko
    Member
    Posted 3 years ago #

    Here is link to the page where you can test img insertion on my site
    http://www.holoborodko.com/pavel/2011/02/07/quicklatex-tikz-graphics/

  3. Pavel Holoborodko
    Member
    Posted 3 years ago #

    My friend just did the same test on his blog (with no plugins, etc. ).

    Result is the same - img tags are being cut out from the comments!!!!

  4. dragonc
    Member
    Posted 3 years ago #

    there appear to be bugs in this new version, there are several posts about different issues in the last hour or so.

  5. Pavel Holoborodko
    Member
    Posted 3 years ago #

    Well I found problem:
    In 3.0.5 file wp-includes/default-filters.php line 35 looks like:

    foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) {

    Just remove bold text and "," before it. Then it will work fine.

    Pitty I cannot commit to WordPress svn.

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    Yep. Bug.

    Specifically, the comment_text was only meant to be cleaned up on the admin side of things, but it accidentally is getting cleaned on both sides.

    The bug only made it into the 3.0 branch, not into 3.1. So the error will be fixed in 3.1. This code in a theme's functions.php should workaround it for now:

    add_action('init','workaround');
    function workaround() {
    remove_filter( 'comment_text', 'wp_kses_data' );
    }
  7. kabitzin
    Member
    Posted 3 years ago #

    Otto's workaround fixed the problem for me. Any idea if this will be fixed in a 3.0.5.x update or will we have to wait till 3.1?

  8. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    Our current thinking is that we're not going to do a 3.0.x. We're working on some improvements for this for 3.1 (due very soon).

    But also, we plan to offer this as a hotfix through a plugin. I'll be back shortly with details.

  9. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    Akismet has the hotfix. Upgrade Akismet to solve the issue.

  10. Andy Bailey
    Member
    Posted 3 years ago #

    thanks for that otto, an image wasn't showing in the link commentluv adds to comments and I thought I was going to have to update the plugin but luckily it wasn't my plugin at fault.

    Upgrading akismet fixed it for now. ta

  11. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    Definitive solution:

    http://wordpress.org/extend/plugins/hotfix/

    You can also update Akismet to 2.5.3 (it also contains the fix), but we have some fun plans for the Hotfix plugin, so I'd install/update both.

    Sorry for the inconvenience on this.

  12. kabitzin
    Member
    Posted 3 years ago #

    Both cool solutions, thanks guys

  13. luksusdyret
    Member
    Posted 3 years ago #

    So... I upgraded today, and some of my images in previous posts just disappeared. I guess it's because of this bug?

    I innstalled the fix but the pictures are still gone :/ what to do?

  14. dragonc
    Member
    Posted 3 years ago #

    Try re-uploading them.

  15. luksusdyret
    Member
    Posted 3 years ago #

    That's kind of what I'm trying to avvoid...

    It's like on many old posts, don't want to have to go back to all the old posts and try to remember wich pictures I used in them ....... That's kind of a huge job.

  16. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    This won't touch images in posts, only comments. It also doesn't damage them, only hide them temporarily (until the fix is applied). You likely have another issue.

  17. magentawave
    Member
    Posted 3 years ago #

    I'm using WP 3.0.5 and I can create a custom menu (Appearance > Menus) but I'm unable to reorder them. They are stuck.

    I installed and activated hotfix.0.3 and that didn't fix the problem.

    I also deactivated ALL my plugins and that didn't fix the problem either.

    What next please?

    Thanks
    Steve

  18. diver66
    Member
    Posted 3 years ago #

    Hi,

    Same problem here, I am going back 3.0.4,
    I just killed all of my menues and redid them ....... arghhhhh

    regards

    Joe

  19. magentawave
    Member
    Posted 3 years ago #

    I'm searching but can't find specific instructions on how to downgrade WP 3.0.5 to 3.0.4. Can anyone help me please?

    Thank you.
    Steve

  20. Matt Martz
    Member
    Posted 3 years ago #

    For anyone experiencing issues with menus, please disable all plugins and switch to the Twenty Ten theme and test again. If it starts working it is either a theme or plugin issue. Switch back to your original theme and test again. If it still works then it is a plugin issue. Reactivate each plugin 1 at a time, testing after each, until you can determine what plugin is causing the issue.

  21. hakre
    Member
    Posted 3 years ago #

    @Matt - Any Idea why Plugins and Themes break with 3.0.5 while they worked with 3.0.4? The changes were not that invasive, weren't they?

  22. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

  23. hakre
    Member
    Posted 3 years ago #

    @Nacin: Just wanted to link it while reading WPDEVEL.

  24. mlogos
    Member
    Posted 3 years ago #

    Geez - just upgraded a HUGE site and now I can't schedule posts, quick edit, click on screen options, click on help and I don't know what else in the dashboard! I'm afraid to see what it has done to the site. This is AWFUL - why won't WP fix this before 3.1???

    Weren't we told this was "a security hardening update for all previous WordPress versions. This security release is required if you have any untrusted user accounts, but it also comes with important security enhancements and hardening. All WordPress users are strongly encouraged to update."

  25. flourishrob
    Member
    Posted 3 years ago #

    I'm not sure if this is the same problem, but comments have stopped working entirely on a blog I've just upgraded to 3.0.5. When I click on '2 comments' (or whatever) at the bottom of the post I expect to go to a list of the comments and a box to add my own. It just takes me to the post on it's own with nowhere to write a comment.
    Any ideas?!

  26. kaptivmedia
    Member
    Posted 3 years ago #

    I've just upgraded to 3.0.5, and in IE8 only the header images on the blog dont display correctly. If i resize the images to be double their original size that worked in the previous version of wordpress, they dont display correctly in Firefox.
    I am using the ProPhoto theme, any ideas on how to correct this??

  27. ltdigman
    Member
    Posted 3 years ago #

    I'm unable to add a picture to a post with NextGen; after adding the selected picture, the dialog box disappears and only inserts some formatting html - no pic. It had worked with 3.0.5, but then got really buggy and, apparently, no longer works.

    Patiently waiting for the next update...

  28. rainbowlaw
    Member
    Posted 3 years ago #

    I wish I would have read about these problems before upgrading yesterday to WordPress 3.0.5. No I cannot upload an image. Not sure if there might be other problems I have not yet encountered. I too would like to know how to downgrade back to 3.0.4.

    Any suggestions?

  29. zloprase
    Member
    Posted 3 years ago #

    Hi, rainbowlaw

    I don't think it is an 3.0.5. issue.
    Today I have tried posting (uploading) some images on my blog, while still having 3.0.4.
    and it didn't work (it kind of worked, but the image wasn't really uploaded, those who are having the same problem will recognize it). Before today everything worked just fine (I published my latest post about a week ago). I am an Ubuntu user, and have tried both Firefox and Chromium browsers, I don't know if that is important.
    So, I tried to fix the problem by upgrading to 3.0.5., switching some plugins on and of and it still doesn't work.
    Now I just don't know what to do.

  30. luksusdyret
    Member
    Posted 3 years ago #

    Well... You are saying it wont touch images in posts, but it did. Cause all I did with my blog that day was upgrading, I did not touch any css and I did not innstall any new plugins.. so It has to be the upgrading.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags