Monday, March 26th, 2007...2:02 am
Ultimate Tag Warrior Bug
I installed the Ultimate Tag Warrior plugin yesterday and went back through all my posts and tagged every single one of them.
Soon after I started noticing missing tags on posts that I was certain I’d already tagged. I reentered the tags and when I checked back a little later they had mysteriously disappeared again.
It turns out there is a bug in the latest version of Ultimate Tag Warrior which causes the tags for a post to be deleted whenever someone leaves a comment or trackback.
I found the fix over at Donncha’s blog.
It’s pretty straight forward.
Open up the file ultimate-tag-warrior-actions.php and look for the following lines of code starting on line 862:
// Save changes to tags
add_action(’publish_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
add_action(’edit_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
add_action(’save_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
add_action(’wp_insert_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
Replace those lines with the following code:
// Save changes to tags
add_action(’save_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
if($wp_db_version < 3308 ) { // if lesser than WP 2.0
add_action(’publish_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
add_action(’edit_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
add_action(’wp_insert_post’, array(’UltimateTagWarriorActions’,'ultimate_save_tags’));
}
I haven’t had any tags disappear on me since I made those changes so it looks like it’s a solid solution to this bug.









7 Comments
March 26th, 2007 at 6:18 am
The latest version of UTW had a fix already for it. I guess you’re trying out a older version. Checkout the UTW plugin homepage
March 26th, 2007 at 6:27 am
Benedict it says it was fixed but I’m definetly running the latest version and the bug is still there. That fix does work though.
March 26th, 2007 at 9:29 am
Dan, I’m not sure which version you’re running..!! But I’m using UTW 3.14159265 which has the issue fixed and I’m running the same in my blog and not facing this issue anymore.
March 26th, 2007 at 9:33 am
Thanks for the post man , i just now noitced the same problem on my blog now . will fix it soon .
March 26th, 2007 at 10:00 am
Benedict that’s the version I’m running. It could have been clashing with another plugin. Either way it’s fixed. It was very frustrating at the time.
March 26th, 2007 at 11:04 am
Oh.. Might be… anyway you have a fix in hand..!! but I’m sure i didn’t fix it manually either.
July 13th, 2007 at 11:58 am
hello, kind regards from Argentina!
i have a problem, with WP 2.1.2 and UTW 3.0.1 when I publish a post, there is no problem with the tags.. so… when I change the timestamp to program this post to the future, the tags doesn’t shows.. but in the DB appears..
i doesn’t found any information of this
thanks!
Leave a Reply