Make WordPress Core


Ignore:
Timestamp:
09/23/2024 06:50:27 AM (7 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/search.php

    r59072 r59079  
    8181        $is_expandable_searchfield = 'button-only' === $button_position;
    8282        if ( $is_expandable_searchfield ) {
    83             $suffix = wp_scripts_get_suffix();
    84             if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
    85                 $module_url = gutenberg_url( '/build-module/block-library/search/view.min.js' );
    86             }
    87 
    88             wp_register_script_module(
    89                 '@wordpress/block-library/search',
    90                 isset( $module_url ) ? $module_url : includes_url( "blocks/search/view{$suffix}.js" ),
    91                 array( '@wordpress/interactivity' ),
    92                 defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
    93             );
    94             wp_enqueue_script_module( '@wordpress/block-library/search' );
     83            wp_enqueue_script_module( '@wordpress/block-library/search/view' );
    9584
    9685            $input->set_attribute( 'data-wp-bind--aria-hidden', '!context.isSearchInputVisible' );
Note: See TracChangeset for help on using the changeset viewer.