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

WordPress Trac noreply at wordpress.org
Thu Dec 13 20:00:53 UTC 2012


#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        |
--------------------------------+------------------

Comment (by nacin):

 > Not moving to jQuery 2.0 next release - thats a huge fear right now (no
 IE6/7/8 support)

 I can quell that fear right now. We'll be moving to 1.9, and the jQuery
 team will be supporting 1.9 in parallel with 2.0 as the same featureset
 and simply a difference in browser support. I expect dropping IE7 in the
 admin may happen in 2013; dropping IE8 will surely happen eventually,
 probably after Windows XP is EOL.

 If you load jQuery from elsewhere in the admin, you risk breaking the rest
 of WordPress. That's without a doubt the number 1 thing on my mind right
 now.

 Here's the problem I'm trying to solve. A theme hooks into `init` and de-
 registers jQuery, then registers another one elsewhere. This overrode the
 admin jQuery accidentally. That's just bad. I'm not saying we should
 prevent jQuery replacement all together. (Let's face it, it'll always be
 possible to do.) Just that we should prevent this accidental and stupid
 situation from occurring, because it breaks tons and tons of WordPress
 sites.

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


More information about the wp-trac mailing list