Make WordPress Core


Ignore:
Timestamp:
09/23/2024 06:50:27 AM (16 months ago)
Author:
noisysocks
Message:

Editor: Update packages for 6.7 Beta 1.

Syncs @wordpress/* packages to the wp-6.7 npm tag.

See #61906.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/navigation.php

    r59072 r59079  
    623623    private static function handle_view_script_module_loading( $attributes, $block, $inner_blocks ) {
    624624        if ( static::is_interactive( $attributes, $inner_blocks ) ) {
    625             $suffix = wp_scripts_get_suffix();
    626             if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
    627                 $module_url = gutenberg_url( '/build-module/block-library/navigation/view.min.js' );
    628             }
    629 
    630             wp_register_script_module(
    631                 '@wordpress/block-library/navigation',
    632                 isset( $module_url ) ? $module_url : includes_url( "blocks/navigation/view{$suffix}.js" ),
    633                 array( '@wordpress/interactivity' ),
    634                 defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
    635             );
    636             wp_enqueue_script_module( '@wordpress/block-library/navigation' );
     625            wp_enqueue_script_module( '@wordpress/block-library/navigation/view' );
    637626        }
    638627    }
Note: See TracChangeset for help on using the changeset viewer.