Make WordPress Core

Ticket #31636: 31636.patch

File 31636.patch, 507 bytes (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/functions.wp-scripts.php

     
    224224
    225225        _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
    226226
    227         $_handle = explode( '?', $handle );
     227        if ( ! is_array( $_handle ) ) {
     228                $_handle = explode( '?', $handle );
     229        }
    228230
    229231        if ( $src ) {
    230232                $wp_scripts->add( $_handle[0], $src, $deps, $ver );