Changeset 59079 for trunk/src/wp-includes/blocks/search.php
- Timestamp:
- 09/23/2024 06:50:27 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/search.php
r59072 r59079 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-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' ); 95 84 96 85 $input->set_attribute( 'data-wp-bind--aria-hidden', '!context.isSearchInputVisible' );
Note: See TracChangeset
for help on using the changeset viewer.