Make WordPress Core


Ignore:
Timestamp:
02/09/2024 06:20:12 PM (22 months ago)
Author:
youknowriad
Message:

Editor: Update the WordPress packages to Gutenberg 17.7RC1.

This brings the latest and greatest from Gutenberg.
The full changelog is available here
https://github.com/WordPress/gutenberg/releases/tag/v17.7.0-rc.1

Props youknowriad, get_dave.
See #60315.

File:
1 edited

Legend:

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

    r57377 r57578  
    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/interactivity/search.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            );
    8394            wp_enqueue_script_module( '@wordpress/block-library/search' );
    8495
     
    196207            'render_callback' => 'render_block_core_search',
    197208        )
    198     );
    199 
    200     wp_register_script_module(
    201         '@wordpress/block-library/search',
    202         defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ? gutenberg_url( '/build/interactivity/search.min.js' ) : includes_url( 'blocks/search/view.min.js' ),
    203         array( '@wordpress/interactivity' ),
    204         defined( 'GUTENBERG_VERSION' ) ? GUTENBERG_VERSION : get_bloginfo( 'version' )
    205209    );
    206210}
Note: See TracChangeset for help on using the changeset viewer.