Changeset 48469 for trunk/src/wp-includes/blocks/search.php
- Timestamp:
- 07/14/2020 11:36:39 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/search.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/search.php
r48177 r48469 15 15 function render_block_core_search( $attributes ) { 16 16 static $instance_id = 0; 17 18 // Older versions of the Search block defaulted the label and buttonText 19 // attributes to `__( 'Search' )` meaning that many posts contain `<!-- 20 // wp:search /-->`. Support these by defaulting an undefined label and 21 // buttonText to `__( 'Search' )`. 22 $attributes = wp_parse_args( 23 $attributes, 24 array( 25 'label' => __( 'Search' ), 26 'buttonText' => __( 'Search' ), 27 ) 28 ); 17 29 18 30 $input_id = 'wp-block-search__input-' . ++$instance_id;
Note: See TracChangeset
for help on using the changeset viewer.