Make WordPress Core

Ticket #31636: 31636.2.patch

File 31636.2.patch, 541 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        } else {
     230                $_handle = $handle;
     231        }
    228232
    229233        if ( $src ) {
    230234                $wp_scripts->add( $_handle[0], $src, $deps, $ver );