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(