From 63ac8f65d824e1802b522dcc50b5b7725b6ea632 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 14 Dec 2018 02:02:37 +0000 Subject: [PATCH] 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 --- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 81bb3e2073..6a83863bfe 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -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( diff --git a/wp-includes/version.php b/wp-includes/version.php index b78b886c3b..add112fb0c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.