[wp-trac] [WordPress Trac] #22896: Prevent plugins from overriding jQuery in the admin
WordPress Trac
noreply at wordpress.org
Sat Jan 5 23:06:55 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 |
--------------------------------+------------------
Comment (by adamsilverstein):
i have attached two files. the first patch mangles the default
twentytwelve theme by calling wp_deregister_script('jquery'); and
requeueing jquery 1.3.2 from google. it breaks the interface and throws
all sorts of javascript errors, give it a try, fun!
the second patch is my proposed solution. it is a sanity check that
prevents wp_deregister_script from registering 'jquery' when in the
dashboard. i did my very best to follow the WordPress coding practices,
but I'm new here so clean me up if I did something wrong!
I'm with nacin on preventing this, i work with lots of end users and every
single one would call me if they installed a theme or plugin that does
this and their Dashboard went haywire!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22896#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list