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:
parent
14e685c0d5
commit
e14e84a7c5
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user