[wp-trac] [WordPress Trac] #16494: Remove "no conflict" mode from bundled jquery

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 19 17:11:38 UTC 2011


#16494: Remove "no conflict" mode from bundled jquery
--------------------------------+------------------------------
 Reporter:  lloydbudd           |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  low                 |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  3.1
 Severity:  minor               |  Resolution:
 Keywords:                      |
--------------------------------+------------------------------

Comment (by sivel):

 I agree with westi as well, I think noConflict should stay, but give users
 the option of removing it via deregistering a jquery-noconflict script.

 There are a lot of plugins in the repo that load, mootools, prototype,
 etc.  If we remove noConflict altogether and a user has a plugin that
 loads jQuery and one that loads prototype, or mootools then we just broke
 a lot of peoples sites.

 As for the recommendation about using $$, that would break mootools if
 someone had that loaded on their site too, since mootools uses both $ and
 $$.

 Sometimes it is not about making a change to make things not as bothersome
 (think wp_magic_quotes()), but what keeps us from breaking thousands if
 not hundreds or thousands of sites that rely on plugins to provide a
 certain functionality that would completely break if we made backwards
 incompatible changes.

 One other idea, is we try to detect loading of other scripts that use $
 and if one is found automatically load jQuery noConflict, but I don't
 really like this idea.

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


More information about the wp-trac mailing list