Script Loader: Fix metadata being registered as an inline script.

[43723] included script metadata for the `wp-polyfill` script that was being registered as an inline script.

See #45065.


Built from https://develop.svn.wordpress.org/branches/5.0@43802


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2018-10-23 06:21:39 +00:00
parent f6366c297f
commit 86484c93cc
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ function wp_default_packages_vendor( &$scripts ) {
}
$scripts->add( 'wp-polyfill', null, array( 'wp-polyfill-ecmascript' ) );
did_action( 'init' ) && $scripts->add_inline_script(
did_action( 'init' ) && $scripts->add_data(
'wp-polyfill',
'data',
wp_get_script_polyfill(

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-43801';
$wp_version = '5.0-alpha-43802';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.