Make WordPress Core

Changeset 59536


Ignore:
Timestamp:
12/18/2024 06:49:53 PM (3 months ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

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

    r59449 r59536  
    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',
Note: See TracChangeset for help on using the changeset viewer.