WordPress 2.0.3 Tuneup

About

This plugin will fix several annoying bugs in WordPress 2.0.3:

  • #2760 “Are you sure?” dialog for comment editing no longer appears
  • #2761 “Are you sure?” dialog no longer adds slashes to info passed through it
  • #2764 After editing a comment, you are properly redirected back to your original location
  • #2776 New in version 0.2: “Are you sure?” dialog for user editing no longer appears
  • #2782 New in version 0.3: “Are you sure?” dialog for link editing no longer appears
  • #2806 New in version 0.4: Deletion of links works when JavaScript is turned off

Download

Instructions

  1. If you have hacked any core files in an attempt to fix these bugs, revert your changes back to stock 2.0.3
  2. Left-click the download link above, which will show you the source code
  3. Left-click the “download” button at the top of the page and save the file as wordpress-2.0.3-tuneup.php
  4. Upload it to /wp-content/plugins/
  5. Activate it

Credits

Thanks to Ryan Boren and Michael D. Adams for helping squish these bugs in SVN.

Versions

  • Version 0.5 Automatic plugin deactivation on upgrade should now work on Windows servers
  • Version 0.4 You can now delete links from the “Link Manager” with JavaScript turned off, and this plugin will now deactivate itself when you upgrade to a newer version of WordPress (older versions would stop working, but were still activated)
  • Version 0.3 Added a fix for the “Are you sure?” dialog for link editing
  • Version 0.2 Added a fix for the “Are you sure?” dialog for user editing
  • Version 0.1 Initial release

I’ve spent a lot of time writing this code and supporting it. If you derive some benefit from this code, please consider showing your gratitute in a more tangible
way. Thanks!

I have received $30.00 this month for my coding efforts.

Donate with PayPalAmazon.com Wishlist


329 Responses to “WordPress 2.0.3 Tuneup”

Comment pages: [1] 2 3 4 »

  1. 紫雨~网上创业教战手册 |

    Cannot found in plugins.

    I have rename it to php without “s”

    But i read thru the content i see u still use phps in there? Is it the one who mess up the activation?

  2. Mark (post author) |

    紫雨,
    If you click the download link above (left-click), you will see the source code of the plugin, with a “Download” link up at the top. Or, just click here (这里点击)!

  3. 紫雨~网上创业教战手册 |

    how to show the little icon of “subscribe” and “blogauthor” in yr comment?

  4. Derek Punsalan |

    Thanks for the plugin. That edit confirmation blurb was already becoming somewhat of a nuisance.

  5. kowalsky |

    Thanks for the plugin, fixed my problems.

  6. Ron |

    Thank you for this. Much appreciated.

  7. Viper007Bond |

    Wow, okay, my “<3 non-core edits” bit got cut off. :(

  8. MHC |

    Darn! I so wish I could use this plug-in! When I activate it I get this error message:

    Parse error: syntax error, unexpected T_VARIABLE in /home/.olia/mhc/domain-name/wp-content/plugins/wordpress-2.0.3-tuneup.php on line 15

    Line 15 being:

    global $pagenow;

    I thought it was because of the theme I am using but just tried it with the WordPress Default theme and results are the same.

  9. Ron |

    MHC,

    I had the same error until I used the file that’s in this download link:

    http://txfx.net/code/wordpress/wordpress-203-tuneup/#comment-17686

  10. MHC |

    Thanks a whole lot! I’ll try this!!!

  11. MHC |

    Totally extraordinary! That file does work without a problem! Thank you so very much! :D

  12. Ron |

    I’m glad to hear that MHC.

    I am not a PHP expert but it may be something to do with the way we copied the code the original way and saved it as a PHP file.

    Cheers.

  13. mo |

    dude you rule.

  14. David W. Boles |

    Excellent plugin! Thanks for solving this nagging problem!

  15. David W. Boles |

    It would be great is this also removed the No/Yes question after approving a comment for publication from an email notification.

  16. Sticker |

    Cheers for this chief!

    I’ll ensure the Aberdeen Bloggers know about it!

  17. Mark (post author) |

    It would be great is this also removed the No/Yes question after approving a comment for publication from an email notification.

    That was left there intentionally (although there we were dissenters on that).

    The reason for this is that if you read your mail in a web browser and you’re using something like Google Web Accelerator, it may do something evil and click the links for you. We’ll definitely be debating this for 2.1, however… and someone could write a plugin that “nonces” those links, so that they work without “yes/no”

    There is a hook for those e-mails that I had added a couple of WP versions ago, so the links could be altered easily.

  18. David W. Boles |

    Hi Mark!

    Thanks for the explanation about mail verification. I get an email notice on my BlackBerry for new moderations and I used to just be able to click and approve — but now I have to do that whole Yes/No thing.

    We appreciate your great work on the plugin and thanks again for saving us so much time!

  19. Olly |

    Thanks a lot for this plugin. Those bugs have been annoying the hell out of me (did they actually test this release?) and this is much less of a pain than rolling back to 2.0.2.

  20. iKA |

    Thanks, works fine for me! :)

  21. Richard Silverstein |

    I was beginning to wonder what the hell was going on w. the stupid Yes/No confirmation & the garbage text getting added to my own comments. Then Carthik Sharma pointed me here. Thanks to you (& Carthik) for putting us all at ease w. this plugin.

  22. Erin |

    Thank you so much for this patch - just ran into this bug tonight and could NOT understand wtf was going on!

  23. Chris |

    The current version of this plugin doesn’t seem to address the “Are you sure” when saving options (e.g. from a plugin)?

    I’m the author of the Dashboard Options plugin and when I edit the options - using AFAIK the WP API - I get the “Are you sure” page and then it redirects to a page that shows an edit form with all (or just about all) the options in the options table.

    I haven’t had a chance to look at it closely enough to see if there was a change in 2.0.3 that just breaks the previous behavior and I’m about to go on vacation, but I’ll definitely be keeping an eye on this and seeing if I can track down the problem myself after I get back.

  24. Mark (post author) |

    Chris,

    Your plugin POSTs to options.php, instead of handling its own options. In order for this to work in WP 2.0.3 or 2.1, you’ll have to “nonce” your options form. Please read this article I wrote for more information.

  25. editnerd |

    when I try to run this I get a
    Fatal error: Call to undefined function: get_bloginfo() in “/home/content/e/d/i/editnerd/html/wp-content/plugins/wordpress-2.0.3-tuneup.php on line 11″

    any ideas not being able to delete anything is driving me crazy.

    thanks

  26. Mark (post author) |

    Editnerd,

    you need to re-upload your WordPress files… get_bloginfo() is a critical function.

  27. Chris |

    Thanks for responding Mark.

    That article seems to cover what I need to know, excellent.

  28. Richard Silverstein |

    I installed the tuneup plugin & it stopped the previous weird behavior I was seeing regarding publishing comments. I’ve had no other issues until tonight.

    I was editing a previously published post & clicked on Save & Continue Editing. The next screen I saw was the dreaded “Are you sure?” screen. When I clicked “Yes” the next screen I saw was the emtpy post edit box.

    Has anyone else noticed this behavior? I thought the plugin was supposed to eliminate the security screen. Is it possible that the plugin doesn’t always work in every instance?

  29. Mark (post author) |

    The plugin doesn’t eliminate nonce checking. That would make your blog insecure. What it does is alter the keys that are checked so that they match the ones being sent. Basically, there were a bunch of instances where people forgot underscores, resulting in a key mismatch.

    I’ve had no issues with Save & Continue Editing, nor heard anyone else report it. Can’t really help that one unless you can get it to be repeatable.

  30. Arno4all |

    Hi great work ! I still stuck with the yes nog for sidebar widgets

  31. MacBros |

    Thanks man! This fixes so much!

  32. Matt |

    Thanks so much for this plugin — it’s extremely useful. I hope it gets incorporated into the core code.

  33. Mark (post author) |

    All things that this plugin fixes are first submitted as patches to the upcoming WordPress 2.0.4

  34. Nazgul |

    There’s a problem with this plugin on WordPress systems which run on Windows. The following code fails, because Windows uses as a path seperator instead of /, which makes the str_replace go wrong.

    $plugin_path = ABSPATH . ‘wp-content/plugins/’;
    $plugin = str_replace($plugin_path, ”, __FILE__);

Comment pages: [1] 2 3 4 »

Leave a Reply