Ikool’s Blogbed

Fix of issues with old version of jQuery in WordPress 2.5.1 when using FeedWordPress

Recently I installed wordpress 2.5.1 and FeedWordpress plugin, wanted to load some of my favorite news RSS, and everything works fine except some of the administrator features with drag and drop capabilities are failed. especially when I was trying to re-arrange sidebar widgets. Here is the error message:

Error: jQuery(“#tags-input”).val() has no properties

After spending sometime debugging it, and I found that FeedWordpress (the version that I am using is 0.993) doesn’t do a good validation before making the call to val() for the jQuery object since the DOM node corresponding to “#tags-input” might not exist. And the code is located in /wp-admin/js/post.js. There are two places needed to be fixed in the file, one is in function tag_update_quickclicks(), and another in function tag_flush_to_text(). Here is the fix for tag_update_quickclicks: Continue reading

June 10, 2008 Posted by | Wordpress Plugins | , , , , | 3 Comments