Techtites Daily: WordPress Wednesday

I still haven’t upgraded this blog to WordPress 2.1 because of a potential problem with Ultimate Tag Warrior on WordPress 2.1.
Tags would get deleted whenever a comment is added. Christine’s latest release too wasn’t able to fix the same.

082net.com has found a fix that has worked successfully for Donncha on his blog. I’ve applied the patch myself and will now be upgrading this blog to WordPress 2.1.

For those interested, modify ‘ultimate_save_tags()’ function on ‘ultimate-tag-warrior-actions.php’ about line 502:

  1. if (isset($_POST[‘comment_post_ID’])) return $postID;
  2. if (isset($_POST[‘not_spam’])) return $postID; // akismet fix
  3. if (isset($_POST["comment"])) return $postID; // moderation.php fix

Update:
The above code will not solve the problem, because tags will disappear when comments are deleted or when you get a trackback. Please delete the above code changes, i.e. the last two lines of the above code.
Then around line 862, replace:

  1. // Save changes to tags
  2. add_action(‘publish_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));
  3. add_action(‘edit_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));
  4. add_action(’save_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));
  5. add_action(‘wp_insert_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));

with

  1. // Save changes to tags
  2. add_action(’save_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));
  3. if($wp_db_version < 3308 ) { // if lesser than WP 2.0
  4.   add_action(‘publish_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));
  5.   add_action(‘edit_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));
  6.   add_action(‘wp_insert_post’, array(‘UltimateTagWarriorActions’,‘ultimate_save_tags’));
  7. }

Thanks to Kirk for updating me about the changed fix. All credits for the new fix goes to 082net.com and Donncha for keeping us updated.
Also, Stephen has found an update on a bug that threw up 404 errors. It did effect me, but I hadn’t given much of a thought about it.

Subscribe to the Feed
Liked this article? Stay in touch with us! Don't forget to Stumble It!
Grab the site feedSubscribe to the Feed, subscribe via email or add to your Technorati favs.

Posted by Ajay under Techtites Daily, Wednesday, WordPress, WordPress Plugins

Post Information:

You may also like these posts: