jQuery 1.2.6 and Conflicts with the Wordpress Plugin

111 views
Skip to first unread message

Rhapsidiomite

unread,
Mar 12, 2009, 9:03:11 PM3/12/09
to DiSo Project
So, I've installed the OpenID plugin on my Wordpress site. This is a
great tool.

One problem I'm encountering. It appears y'all have used jQuery v.
1.2.6. I of course, already use jQuery for various tasks, but I'm
using the newer version 1.3.2...

Is there any way to replace/update the plugin code? I'm probably
going to dig around in my version of the plugin and see if I can just
change it myself, but wouldn't y'all want to be up to date? Just a
thought.

Any feedback is welcome.

-- Robert

Screen Poet

unread,
Mar 12, 2009, 9:49:27 PM3/12/09
to DiSo Project
Okay...digging around, it seems the plugin just utilizes Wordpress
native functionality, which supports version 1.2.6? It appears to
call it in the wp_enqueue_script('jquery') function. Kind of
annoying. But that's what's that I guess. :)

Austin Matzko

unread,
Mar 12, 2009, 11:26:39 PM3/12/09
to diso-p...@googlegroups.com
On Thu, Mar 12, 2009 at 8:49 PM, Screen Poet <lang...@gmail.com> wrote:
> Okay...digging around, it seems the plugin just utilizes Wordpress
> native functionality, which supports version 1.2.6?  It appears to
> call it in the wp_enqueue_script('jquery') function.  Kind of
> annoying.  But that's what's that I guess.  :)

You can override the version of jQuery used by WordPress:

function override_jquery() {
if ( is_admin() ) // using a newer version of jQuery will break
stuff in WP admin
return;
wp_deregister_script('jquery');
wp_register_script('jquery', '/path/to/your/version/of/jquery.js');
}
add_action('init', 'override_jquery');

Screen Poet

unread,
Mar 13, 2009, 9:30:14 AM3/13/09
to DiSo Project
Yes...I did some digging around and figured this stuff out, though
yours is a little more complete (including is_admin() stuff). Thanks!





On Mar 12, 11:26 pm, Austin Matzko <if.webs...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages