Changeset 59540
- Timestamp:
- 12/19/2024 03:07:09 AM (5 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r59536 r59540 107 107 108 108 $vendor_scripts_versions = array( 109 'react' => '18.3.1 -umd',110 'react-dom' => '18.3.1 -umd',109 'react' => '18.3.1.1', // Final .1 due to switch to UMD build, can be removed in the next update. 110 'react-dom' => '18.3.1.1', // Final .1 due to switch to UMD build, can be removed in the next update. 111 111 'react-jsx-runtime' => '18.3.1', 112 112 'regenerator-runtime' => '0.14.1', -
trunk/tests/phpunit/tests/dependencies/scripts.php
r59071 r59540 3414 3414 } 3415 3415 3416 /* 3417 * Append '.1' to the version number for React and ReactDOM. 3418 * 3419 * This is due to a change in the build to use the UMD version of the 3420 * scripts, requiring a different version number in order to break the 3421 * caches of some CDNs. 3422 * 3423 * This can be removed in the next update to the packages. 3424 * 3425 * See https://core.trac.wordpress.org/ticket/62422 3426 */ 3427 if ( in_array( $handle, array( 'react', 'react-dom' ), true ) ) { 3428 $package_json[ $script ] .= '.1'; 3429 } 3430 3416 3431 $script_query = $wp_scripts->query( $handle, 'registered' ); 3417 3432
Note: See TracChangeset
for help on using the changeset viewer.