From 447e58166c2a434e8fe8e31eb627c25b9560ad48 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Thu, 19 Dec 2024 03:09:23 +0000 Subject: [PATCH] External Libraries: Append `.1` to `react`/`react-dom` versions. Replaces the `-umd` appendage for the `react` and `react-dom` script versions with `.1`. This it to prevent issues with third party code expecting the version number in the form `/^[\d\.]+$/`. Updates the version to tests in `Tests_Dependencies_Scripts::test_vendor_script_versions_registered_manually` to include the modified version used for cache busting. Follow up to [59536], [58775]. Props azaozz, desrosj, peterwilsoncc. Fixes #62422. Built from https://develop.svn.wordpress.org/trunk@59540 git-svn-id: http://core.svn.wordpress.org/trunk@58926 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 14027aa52a..f4e37d7164 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-umd', - 'react-dom' => '18.3.1-umd', + 'react' => '18.3.1.1', // Final .1 due to switch to UMD build, can be removed in the next update. + 'react-dom' => '18.3.1.1', // Final .1 due to switch to UMD build, can be removed in the next update. '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 7b385dd2f1..aa5bb24308 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59536'; +$wp_version = '6.8-alpha-59540'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.