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.



git-svn-id: https://develop.svn.wordpress.org/trunk@44143 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2018-12-14 02:01:08 +00:00
parent 14e685c0d5
commit e14e84a7c5
1 changed files with 1 additions and 1 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(