[wp-trac] [WordPress Trac] #35643: wp_enqueue_script() with an alias handle doesn't work in footer

WordPress Trac noreply at wordpress.org
Tue Feb 2 21:30:20 UTC 2016


#35643: wp_enqueue_script() with an alias handle doesn't work in footer
--------------------------------------+--------------------
 Reporter:  kovshenin                 |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.5
Component:  Script Loader             |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------

Comment (by kovshenin):

 @grapplerulrich Yeah it works with jQuery. The code you referenced is the
 code that's moved out of the dependencies class and into the scripts and
 styles subclasses instead. Are you sure you applied the patch? And also,
 make sure no other header scripts declare a jquery dependency, otherwise
 WordPress will still obey the dependency and print jQuery in the header,
 regardless of its footer group.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35643#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list