From cf0f8e82b5876579dba72a82e4bc3b2debbf83b7 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Tue, 23 Oct 2018 06:20:23 +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. See #45065. git-svn-id: https://develop.svn.wordpress.org/branches/5.0@43802 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 598e6dfac3..8de2e5b971 100644 --- a/src/wp-includes/script-loader.php +++ b/src/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(