Changeset 53030 for branches/5.9/src/wp-includes/blocks/search.php
- Timestamp:
- 03/30/2022 11:28:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9/src/wp-includes/blocks/search.php
r52766 r53030 74 74 $button_internal_markup = ''; 75 75 $button_classes = $color_classes; 76 $aria_label = ''; 76 77 77 78 if ( ! $is_button_inside ) { … … 83 84 } 84 85 } else { 86 $aria_label = sprintf( 'aria-label="%s"', esc_attr( wp_strip_all_tags( $attributes['label'] ) ) ); 85 87 $button_classes .= ' has-icon'; 86 88 $button_internal_markup = 87 89 '<svg id="search-icon" class="search-icon" viewBox="0 0 24 24" width="24" height="24"> 88 89 90 <path d="M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"></path> 91 </svg>'; 90 92 } 91 93 92 94 $button_markup = sprintf( 93 '<button type="submit" class="wp-block-search__button %s" %s >%s</button>',95 '<button type="submit" class="wp-block-search__button %s" %s %s>%s</button>', 94 96 esc_attr( $button_classes ), 95 97 $inline_styles['button'], 98 $aria_label, 96 99 $button_internal_markup 97 100 );
Note: See TracChangeset
for help on using the changeset viewer.