[wp-trac] [WordPress Trac] #22896: Prevent plugins from overriding jQuery in the admin
WordPress Trac
noreply at wordpress.org
Sat Jan 5 16:45:44 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 |
--------------------------------+------------------
Changes (by adamsilverstein):
* cc: ADAMSILVERSTEIN@… (added)
Comment:
Replying to [ticket:22896 nacin]:
> This is getting ridiculous. It's time to force our own version of jQuery
and avoid it being unregistered/re-registered by conventional means.
>
> That's not to say it wouldn't be "impossible" (that's just not
realistic), but it can prevent any plugin or theme doing its overriding
blindly on init from breaking the admin.
i'd like to take a stab at this, i've seen this issue myself in the past.
your summary state "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." can you
point me to bad theme or give a line of code i can add to twentyeleven so
it does the bad thing you mention. i think i know what you mean, but
theres nothing like a reproducible test case for debugging.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22896#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list