diff --git a/src/wp-includes/functions.wp-scripts.php b/src/wp-includes/functions.wp-scripts.php index 615b502733..01ad19b1c2 100644 --- a/src/wp-includes/functions.wp-scripts.php +++ b/src/wp-includes/functions.wp-scripts.php @@ -82,7 +82,7 @@ function wp_print_scripts( $handles = false ) { } } - return $wp_scripts->do_items( $handles ); + return wp_scripts()->do_items( $handles ); } /** diff --git a/src/wp-includes/functions.wp-styles.php b/src/wp-includes/functions.wp-styles.php index bfc12ca973..2036f4b951 100644 --- a/src/wp-includes/functions.wp-styles.php +++ b/src/wp-includes/functions.wp-styles.php @@ -61,7 +61,7 @@ function wp_print_styles( $handles = false ) { } } - return $wp_styles->do_items( $handles ); + return wp_styles()->do_items( $handles ); } /**