Make WordPress Core


Ignore:
Timestamp:
02/17/2022 07:16:57 PM (4 years ago)
Author:
audrasjb
Message:

Editor: Update block editor packages for WordPress 5.9.1.

The following packages were updated:

  • @wordpress/block-directory@3.0.27
  • @wordpress/block-editor@8.0.17
  • @wordpress/block-library@6.0.26
  • @wordpress/components@19.2.3
  • @wordpress/core-data@4.0.10
  • @wordpress/customize-widgets@2.0.27
  • @wordpress/e2e-tests@2.5.18
  • @wordpress/edit-post@5.0.27
  • @wordpress/edit-site@3.0.27
  • @wordpress/edit-widgets@3.1.22
  • @wordpress/editor@12.0.21
  • @wordpress/format-library@3.0.23
  • @wordpress/interface@4.1.18
  • @wordpress/list-reusable-blocks@3.0.20
  • @wordpress/nux@5.0.20
  • @wordpress/reusable-blocks@3.0.23
  • @wordpress/server-side-render@3.0.20
  • @wordpress/widgets@2.0.23

Props Mamaduka.
See #55179.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/search.php

    r52551 r52765  
    4444        $border_color_classes = get_border_color_classes_for_block_core_search( $attributes );
    4545
     46        $label_inner_html = empty( $attributes['label'] ) ? __( 'Search' ) : wp_kses_post( $attributes['label'] );
     47
    4648        $label_markup = sprintf(
    4749                '<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
    5052        );
    5153        if ( $show_label && ! empty( $attributes['label'] ) ) {
     
    5355                        '<label for="%1$s" class="wp-block-search__label">%2$s</label>',
    5456                        $input_id,
    55                         esc_html( $attributes['label'] )
     57                        $label_inner_html
    5658                );
    5759        }
     
    7880                if ( ! $use_icon_button ) {
    7981                        if ( ! empty( $attributes['buttonText'] ) ) {
    80                                 $button_internal_markup = esc_html( $attributes['buttonText'] );
     82                                $button_internal_markup = wp_kses_post( $attributes['buttonText'] );
    8183                        }
    8284                } else {
Note: See TracChangeset for help on using the changeset viewer.