Make WordPress Core

Changeset 57185

Timestamp:
12/13/2023 05:48:09 PM (8 months 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.

Location:
trunk
Files:
2 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.',
    114114        'wp-polyfill-fetch'           => '3.6.17',
    115115        'wp-polyfill-formdata'        => '4.0.10',
  • trunk/tests/phpunit/tests/dependencies/scripts.php

    r56933 r57185  
    33533353        );
    33543354    }
     3355
     3356
     3357
     3358
     3359
     3360
     3361
     3362
     3363
     3364
     3365
     3366
     3367
     3368
     3369
     3370
     3371
     3372
     3373
     3374
     3375
     3376
     3377
     3378
     3379
     3380
     3381
     3382
     3383
     3384
     3385
     3386
     3387
     3388
     3389
     3390
     3391
    33553392}
Note: See TracChangeset for help on using the changeset viewer.