WordPress 2.6.3 ships with a broken jQuery?

We’ve been adding a custom panel for the write post page for one of our clients and having the hardest time diagnosing the errors that we’ve been getting. It turns out that using the built-in jQuery library that ships with WordPress was the problem. We ended up having to download the library from the jQuery site and use some WordPress magic to make it use our library instead. Below is the code to use your own jQuery file. Put it in your theme’s functions.php (<your-blog-url>/wp-content/themes/<your-theme-name>/functions.php) page.

1
2
3
4
5
add_action("init", "install_jquery_scripts");
function install_jquery_scripts() {
	wp_deregister_script("jquery");
	wp_register_script("jquery", "/path/to/your/jquery-1.2.6.min.js", array(), "1.2.6");
}

We had this issue with WordPress version 2.6.3 and just about any plugin we tried to run utilizing jQuery 1.2.6.

DeliciousStumbleUponDiggTwitterMixxTechnoratiFacebookLinkedInYahoo! Bookmarks

Possibly Related Information

Leave a Reply

You must be logged in to post a comment.