Make WordPress Core


Ignore:
Timestamp:
12/13/2023 05:48:09 PM (2 years ago)
Author:
jorbin
Message:

External Libraries: For Lodash, sync the declared version number with the one that is loaded.

In [50941] the version of lodash was updated, however the version inside wp_default_packages_vendor was not updated at the same time. This updates the version to correctly reflect the version that is loaded.

Also adds some basic tests for the scripts in wp_default_packages_vendor that match the name of the package from package.json to help prevent errors like this in the future.

Props jadpm, jorbin, swissspidy.
Fixes #60048. See #52991.

File:
1 edited

Legend:

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

    r57065 r57185  
    111111        'regenerator-runtime'         => '0.14.0',
    112112        'moment'                      => '2.29.4',
    113         'lodash'                      => '4.17.19',
     113        'lodash'                      => '4.17.21',
    114114        'wp-polyfill-fetch'           => '3.6.17',
    115115        'wp-polyfill-formdata'        => '4.0.10',
Note: See TracChangeset for help on using the changeset viewer.