[wp-trac] [WordPress Trac] #26886: wp_enqueue_script doesn't load all scripts

WordPress Trac noreply at wordpress.org
Fri Oct 17 06:45:02 UTC 2014


#26886: wp_enqueue_script doesn't load all scripts
-------------------------------+-----------------------
 Reporter:  alfredocubitos     |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  Script Loader      |     Version:  3.8
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+-----------------------

Comment (by dd32):

 > ... in this case effectively not loading jquery-ui-datepicker.

 This shouldn't be the case, as the string is merged together:
 {{{
 wp-admin/load-scripts.php:
 $load = $_GET['load'];
 if ( is_array( $load ) )
         $load = implode( '', $load );
 }}}

 `?load[]=abc,d&load[]=ef` gets combined to `$load="abc,def"` before being
 split by commas and processed.

 It's worth noting though, that loading a url containing `load%5B%5D` into
 your browser URL bar will result in an invalid URL, you need to replace
 `load%5B%5D` with `load[]` to test that way, it's the proper format for
 use In a `<script>` tag though.

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


More information about the wp-trac mailing list