diff --git a/wp-includes/functions.wp-scripts.php b/wp-includes/functions.wp-scripts.php index 465d07be4d..bf4ff40866 100644 --- a/wp-includes/functions.wp-scripts.php +++ b/wp-includes/functions.wp-scripts.php @@ -74,9 +74,13 @@ function wp_print_scripts( $handles = false ) { wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); - if ( ! $handles ) { - return array(); // No need to instantiate if nothing is there. + global $wp_scripts; + if ( ! ( $wp_scripts instanceof WP_Scripts ) ) { + if ( ! $handles ) { + return array(); // No need to instantiate if nothing is there. + } } + return wp_scripts()->do_items( $handles ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 2289cc89a7..90c0f22824 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31192'; +$wp_version = '4.2-alpha-31193'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.