Make WordPress Core


Ignore:
Timestamp:
06/04/2024 07:37:06 AM (11 months ago)
Author:
gziolo
Message:

Editor: Remove unnecessary code for ensuring interactivity API dependency in block core functions

Removing old code for registering the private version of the Interactivity API pre-6.5.

Props czapla, gziolo, shailu25, cbravobernal.
Fixes #60913.

File:
1 edited

Legend:

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

    r58288 r58322  
    283283     */
    284284    $assets = include ABSPATH . WPINC . "/assets/script-loader-packages{$suffix}.php";
    285 
    286     // Add the private version of the Interactivity API manually.
    287     $scripts->add( 'wp-interactivity', '/wp-includes/js/dist/interactivity.min.js' );
    288     did_action( 'init' ) && $scripts->add_data( 'wp-interactivity', 'strategy', 'defer' );
    289285
    290286    foreach ( $assets as $file_name => $package_data ) {
Note: See TracChangeset for help on using the changeset viewer.