From 5cb9ffc5cac81d6c3373f5130178ea7a4fa3fbc1 Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 18 Dec 2024 18:51:25 +0000 Subject: [PATCH] External Libraries: Append a string to `react`/`react-dom` versions. In 6.7, [58775] changed the way `react` and `react-dom` are bundled in Core. This commit resulted in some changes to the built files that are distributed in WordPress even though the actual version of the libraries remained the same. The result can be a blank white screen when trying to edit a post when those two script files are heavily cached. This adds `-umd` to the end of the version number to properly purge caches until the next update to these libraries occurs. Props levskipg, get_dave, smerriman, jdnd, juanwp22, seanlanglands, robertstaddon. Fixes 62422. Built from https://develop.svn.wordpress.org/trunk@59536 git-svn-id: http://core.svn.wordpress.org/trunk@58922 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index d2c8dbe97e..14027aa52a 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -106,8 +106,8 @@ function wp_default_packages_vendor( $scripts ) { ); $vendor_scripts_versions = array( - 'react' => '18.3.1', - 'react-dom' => '18.3.1', + 'react' => '18.3.1-umd', + 'react-dom' => '18.3.1-umd', 'react-jsx-runtime' => '18.3.1', 'regenerator-runtime' => '0.14.1', 'moment' => '2.30.1', diff --git a/wp-includes/version.php b/wp-includes/version.php index 76dc9d1a5d..7b385dd2f1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59534'; +$wp_version = '6.8-alpha-59536'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.