[wp-trac] [WordPress Trac] #16694: wp_dequeue_script() fails to dequeue when a registered script is dependent
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 28 03:05:52 UTC 2011
#16694: wp_dequeue_script() fails to dequeue when a registered script is dependent
--------------------------+-----------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
I'm trying to dequeue quicktags. It doesn't work.
sivel was able to track down that scripts are not dequeued, when another
script is dependent on them.
Only, in this case, quicktag's only dependent (admin-comments), will
always be registered, but on this page, it not enqueued. admin-comment's
only dependent (dashboard) is also not enqueued, and is only registered.
Two issues:
1. These functions should have return values for them. If they're going to
fail, we need to know.
2. I should be able to dequeue quicktags in this situation. If admin-
comments *is* enqueued, perhaps I should not, unless I dequeue admin-
comments first. But at the very least, a registered and unqueued dependent
should not prevent dequeueing.
(Extra bug noticed -- the comment reply form is rendered on post-new.php,
despite the comments meta box not being supported by this post type.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16694>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list