Changeset 57578 for trunk/src/wp-includes/blocks/search.php
- Timestamp:
- 02/09/2024 06:20:12 PM (22 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/search.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/search.php
r57377 r57578 81 81 $is_expandable_searchfield = 'button-only' === $button_position; 82 82 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 ); 83 94 wp_enqueue_script_module( '@wordpress/block-library/search' ); 84 95 … … 196 207 'render_callback' => 'render_block_core_search', 197 208 ) 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' )205 209 ); 206 210 }
Note: See TracChangeset
for help on using the changeset viewer.