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
This commit is contained in:
desrosj 2024-12-18 18:51:25 +00:00
parent dfd4b20ea2
commit 5cb9ffc5ca
2 changed files with 3 additions and 3 deletions

View File

@ -106,8 +106,8 @@ function wp_default_packages_vendor( $scripts ) {
); );
$vendor_scripts_versions = array( $vendor_scripts_versions = array(
'react' => '18.3.1', 'react' => '18.3.1-umd',
'react-dom' => '18.3.1', 'react-dom' => '18.3.1-umd',
'react-jsx-runtime' => '18.3.1', 'react-jsx-runtime' => '18.3.1',
'regenerator-runtime' => '0.14.1', 'regenerator-runtime' => '0.14.1',
'moment' => '2.30.1', 'moment' => '2.30.1',

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.