From ae690a3fdf4f34622dda46f730e8a859a53d9e33 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 25 Jun 2017 07:20:41 +0000 Subject: [PATCH] Scripts: Correctly reference `WP_Scripts::print_extra_script()` as the replacement for the deprecated `WP_Scripts::print_scripts_l10n()` method, rather than a nonexistent global print_extra_script() function. Props fergbrain. See #41121. Built from https://develop.svn.wordpress.org/trunk@40938 git-svn-id: http://core.svn.wordpress.org/trunk@40788 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class.wp-scripts.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index 81634ece41..b3e0b8abeb 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -197,7 +197,7 @@ class WP_Scripts extends WP_Dependencies { * @return bool|string|void Void if no data exists, extra scripts if `$echo` is true, true otherwise. */ public function print_scripts_l10n( $handle, $echo = true ) { - _deprecated_function( __FUNCTION__, '3.3.0', 'print_extra_script()' ); + _deprecated_function( __FUNCTION__, '3.3.0', 'WP_Scripts::print_extra_script()' ); return $this->print_extra_script( $handle, $echo ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index c9f0a56b8d..6c23b1a5ec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-40937'; +$wp_version = '4.9-alpha-40938'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.