[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:15:32 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 | Resolution:
Keywords: 2nd-opinion |
--------------------------+------------------------------
Changes (by nacin):
* keywords: => 2nd-opinion
Comment:
Looks like the issue is that quicktags gets spit out by
wp_print_scripts(). Enqueueing it doesn't matter, thus dequeueing it
doesn't matter.
It should be properly enqueued, instead of printed. (The script should
also fire on ready, not direct document.writes on load. Whole thing needs
a rewrite.) That's probably for another ticket.
Besides that, the dequeue function should really have a return value. The
bug still stands in that wp_dequeue_script() fails to dequeue when an
enqueued script is dependent. If that's not a bug, then we need a return
false to know that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16694#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list