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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 15 17:58:12 UTC 2010


#9346: wp_enqueue_script() doesn't work mid-page for footer scripts
--------------------------+-------------------------------------------------
 Reporter:  Viper007Bond  |        Owner:  azaozz        
     Type:  enhancement   |       Status:  reopened      
 Priority:  lowest        |    Milestone:  Future Release
Component:  JavaScript    |      Version:  2.8           
 Severity:  minor         |   Resolution:                
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by azaozz):

 The second patch forces a script in the footer without accounting for the
 dependencies. When that script depends on another script that prints in
 the head by default (and is not already printed) it would break.

 I would rather go with the first patch (by Denis). It prints all scripts
 that haven't been printed yet in the footer regardless of the default
 location.

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


More information about the wp-trac mailing list