Make WordPress Core


Ignore:
Timestamp:
01/31/2024 06:14:30 PM (4 months ago)
Author:
swissspidy
Message:

Script Loader: Use a global variable in wp_script_modules().

This brings the function more in line with its related wp_scripts() and wp_styles() functions and makes it easier to reset the class instance in tests.

Props westonruter, luisherranz.
See #56313.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r57499 r57503  
    379379require ABSPATH . WPINC . '/interactivity-api.php';
    380380
     381wp_script_modules()->add_hooks();
     382
    381383$GLOBALS['wp_embed'] = new WP_Embed();
    382384
Note: See TracChangeset for help on using the changeset viewer.