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
This commit is contained in:
parent
4c60260c29
commit
ae690a3fdf
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue