[wp-trac] Re: [WordPress Trac] #9346: wp_enqueue_script() doesn't work mid-page for footer scripts (was: wp_enqueue_script() doesn't work mid-page)

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 16 12:21:43 GMT 2009


#9346: wp_enqueue_script() doesn't work mid-page for footer scripts
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |       Owner:  azaozz        
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  JavaScript    |     Version:  2.8           
 Severity:  normal        |    Keywords:  needs-patch   
--------------------------+-------------------------------------------------

Comment(by Viper007Bond):

 Missing comma inside that register:

 {{{
 wp_register_script( 'myscript', '/some/path/script.js', array(), '1.2.3',
 true );
 }}}

 And incase you didn't notice, the fifth parameter is set to `true` which
 makes it output in the footer.

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


More information about the wp-trac mailing list