[wp-trac] [WordPress Trac] #22896: Prevent plugins from overriding jQuery in the admin
WordPress Trac
noreply at wordpress.org
Sat Feb 2 03:00:42 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 nacin):
After reading through this thread and also talking to scribu in IRC, I am
going to proceed with a patch that acts more broadly but is slightly less
agressive.
Basically, is_admin() is the first of two checks we should be making. The
other is whether the current hook is admin_enqueue_scripts. Chances are,
if they are using the correct hook, then they know what they are doing.
This still prevents blind de-registrations, and should solve the vast
majority of support requests while still providing some flexibility to
plugins and technical requirements.
By broadly, I mean, let's block all of jQuery and jQuery UI*, not just
jQuery.
(* I left out jQuery UI effects because it just seems like a waste of
array size.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22896#comment:43>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list