Make WordPress Core

Changeset 59540

Timestamp:
12/19/2024 03:07:09 AM (5 months ago)
Author:
peterwilsoncc
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r59536 r59540  
    107107
    108108    $vendor_scripts_versions = array(
    109         'react'                       => '18.3.1-umd',
    110         'react-dom'                   => '18.3.1-umd',
     109        'react'                       => '18.3.1
     110        'react-dom'                   => '18.3.1
    111111        'react-jsx-runtime'           => '18.3.1',
    112112        'regenerator-runtime'         => '0.14.1',
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r59071 r59540  
    34143414        }
    34153415
     3416
     3417
     3418
     3419
     3420
     3421
     3422
     3423
     3424
     3425
     3426
     3427
     3428
     3429
     3430
    34163431        $script_query = $wp_scripts->query( $handle, 'registered' );
    34173432
Note: See TracChangeset for help on using the changeset viewer.