Skip to content

Commit a2107c2

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59536 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7af0469 commit a2107c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/script-loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ function wp_default_packages_vendor( $scripts ) {
106106
);
107107

108108
$vendor_scripts_versions = array(
109-
'react' => '18.3.1',
110-
'react-dom' => '18.3.1',
109+
'react' => '18.3.1-umd',
110+
'react-dom' => '18.3.1-umd',
111111
'react-jsx-runtime' => '18.3.1',
112112
'regenerator-runtime' => '0.14.1',
113113
'moment' => '2.30.1',

0 commit comments

Comments
 (0)