Changeset 52765 for trunk/src/wp-includes/blocks/search.php
- Timestamp:
- 02/17/2022 07:16:57 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/search.php
r52551 r52765 44 44 $border_color_classes = get_border_color_classes_for_block_core_search( $attributes ); 45 45 46 $label_inner_html = empty( $attributes['label'] ) ? __( 'Search' ) : wp_kses_post( $attributes['label'] ); 47 46 48 $label_markup = sprintf( 47 49 '<label for="%1$s" class="wp-block-search__label screen-reader-text">%2$s</label>', 48 $input_id,49 empty( $attributes['label'] ) ? __( 'Search' ) : esc_html( $attributes['label'] )50 esc_attr( $input_id ), 51 $label_inner_html 50 52 ); 51 53 if ( $show_label && ! empty( $attributes['label'] ) ) { … … 53 55 '<label for="%1$s" class="wp-block-search__label">%2$s</label>', 54 56 $input_id, 55 esc_html( $attributes['label'] )57 $label_inner_html 56 58 ); 57 59 } … … 78 80 if ( ! $use_icon_button ) { 79 81 if ( ! empty( $attributes['buttonText'] ) ) { 80 $button_internal_markup = esc_html( $attributes['buttonText'] );82 $button_internal_markup = wp_kses_post( $attributes['buttonText'] ); 81 83 } 82 84 } else {
Note: See TracChangeset
for help on using the changeset viewer.