[wp-trac] [WordPress Trac] #20971: Delaying wp_default_scripts() prevents enqueing

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 15 23:37:27 UTC 2012


#20971: Delaying wp_default_scripts() prevents enqueing
--------------------------+--------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4.1
Component:  General       |     Version:  3.4
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by azaozz):

 Replying to [comment:3 scribu]:

 Yes this works:

 {{{
 wp_enqueue_script( 'my-js', 'url', array( 'jquery' ), ... );
 }}}

 And this doesn't work when `my-other-js` is not registered beforehand:

 {{{
 wp_enqueue_script( 'my-js', 'url', array( 'my-other-js' ), ... );
 }}}

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


More information about the wp-trac mailing list