Make WordPress Core


Ignore:
Timestamp:
09/24/2024 07:33:55 AM (17 months ago)
Author:
gziolo
Message:

Build: Prepare for more Script Modules

This is a companion to https://github.com/WordPress/gutenberg/pull/65460 that requires syncing in WordPress Core. Namely, the block-library changes require registration with their updated script module IDs so that the blocks continue to work correctly.

They key improvement is script modules registration is handled in one central place, and a combined asset file is used to improve the performance by avoiding multiple disk operations for every individual file.

Props jonsurrell, gziolo, wildworks, noisysocks.
See #60647, #59462.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r58944 r59083  
    571571add_action( 'wp_default_scripts', 'wp_default_scripts' );
    572572add_action( 'wp_default_scripts', 'wp_default_packages' );
     573add_action( 'wp_default_scripts', 'wp_default_script_modules' );
    573574
    574575add_action( 'wp_enqueue_scripts', 'wp_localize_jquery_ui_datepicker', 1000 );
Note: See TracChangeset for help on using the changeset viewer.