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:
parent
76c23f00ff
commit
63ac8f65d8
|
@ -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(
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue