[wp-trac] [WordPress Trac] #35873: wp_register_script grandchild level dependency not rendered

WordPress Trac noreply at wordpress.org
Fri Feb 19 22:41:25 UTC 2016


#35873: wp_register_script grandchild level dependency not rendered
----------------------------------------+------------------------------
 Reporter:  Dima Stefantsov             |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Script Loader               |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch has-unit-tests  |     Focuses:  javascript
----------------------------------------+------------------------------

Comment (by Dima Stefantsov):

 Hi Dominik. I expect same behaviour as when two scripts queued: wordpress
 tries to render everything where it was registerd to be, moving footer
 children to header if parent requires header.

 {{{#!php
 $expected_head  = "<script type='text/javascript'
 src='http://example.org/grandchild.js?ver=1'></script>\n";
 $expected_head .= "<script type='text/javascript'
 src='http://example.org/child.js?ver=1'></script>\n";

 $expected_footer = "<script type='text/javascript'
 src='http://example.org/parent.js?ver=1'></script>\n";
 }}}

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


More information about the wp-trac mailing list