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.

Merges [43802] from the 5.0 branch to trunk.

See #45065.


Built from https://develop.svn.wordpress.org/trunk@44143


git-svn-id: http://core.svn.wordpress.org/trunk@43973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2018-12-14 02:02:37 +00:00
parent 76c23f00ff
commit 63ac8f65d8
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

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-alpha-44142';
$wp_version = '5.1-alpha-44143';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.