[wp-trac] [WordPress Trac] #21134: Registering and enqueueing on the same action can cause enqueueing to happen before registering

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 3 01:42:10 UTC 2012


#21134: Registering and enqueueing on the same action can cause enqueueing to
happen before registering
--------------------------+------------------------------
 Reporter:  nbachiyski    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by azaozz):

 "Proof of concept" patch. If a file has been enqueued with a dependency
 that doesn't exist or is not registered prior to calling
 `print_head_scripts()` ('wp_head', 9 or 'admin_print_scripts', 20), it is
 removed from the queue when calling WP_Dependencies::all_deps() by
 WP_Dependencies::do_items().

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21134#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list