From 4a20a75fa13e1d6f46be6929ca033399ced4ab7d Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 19 May 2021 20:00:57 +0000 Subject: [PATCH] Script Loader: Stop loading polyfills specific to Internet Explorer This change removes the inline JavaScript attached to the `wp-polyfill` script responsible for loading polyfill libraries included specifically for Internet Explorer support. Support for the final version of IE supported in WordPress Core (IE11) was removed in [50784] and will on longer be supported when the next version of WordPress is released. These scripts are still registered and available to be enqueued, but WordPress will no longer load them by default. For more information, see https://wordpress.org/news/2021/05/dropping-support-for-internet-explorer-11/. Props youknowriad, gziolo, sergiomdgomes, desrosj. Fixes #53078. Built from https://develop.svn.wordpress.org/trunk@50934 git-svn-id: http://core.svn.wordpress.org/trunk@50543 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 15 --------------- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 16a5f07d09..ebb9a23359 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -122,21 +122,6 @@ function wp_default_packages_vendor( $scripts ) { } $scripts->add( 'wp-polyfill', null, array( 'wp-polyfill' ) ); - did_action( 'init' ) && $scripts->add_inline_script( - 'wp-polyfill', - wp_get_script_polyfill( - $scripts, - array( - '\'fetch\' in window' => 'wp-polyfill-fetch', - 'document.contains' => 'wp-polyfill-node-contains', - 'window.DOMRect' => 'wp-polyfill-dom-rect', - 'window.URL && window.URL.prototype && window.URLSearchParams' => 'wp-polyfill-url', - 'window.FormData && window.FormData.prototype.keys' => 'wp-polyfill-formdata', - 'Element.prototype.matches && Element.prototype.closest' => 'wp-polyfill-element-closest', - '\'objectFit\' in document.documentElement.style' => 'wp-polyfill-object-fit', - ) - ) - ); did_action( 'init' ) && $scripts->add_inline_script( 'lodash', 'window.lodash = _.noConflict();' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 3a4c0c19fb..af494e806b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50933'; +$wp_version = '5.8-alpha-50934'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.