[wp-trac] [WordPress Trac] #22896: Prevent plugins from overriding jQuery in the admin

WordPress Trac noreply at wordpress.org
Fri Jan 25 01:56:25 UTC 2013


#22896: Prevent plugins from overriding jQuery in the admin
------------------------------------+------------------
 Reporter:  nacin                   |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  3.6
Component:  External Libraries      |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------

Comment (by azaozz):

 Replying to [comment:33 auniquename]:
 > I of course tried '''exactly that''' first (see long boring story
 above)...

 I may be mis-reading something but

 {{{
 var mypluginjq = jQuery.noConflict();
 }}}

 won't do it. You need

 {{{
 var mypluginjq = jQuery.noConflict(true);
 }}}

 so both `jQuery` and `$` are returned to the original values. See
 http://api.jquery.com/jQuery.noConflict/#example-4

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22896#comment:37>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list