Make WordPress Core


Ignore:
Timestamp:
03/30/2022 11:28:30 AM (3 years ago)
Author:
audrasjb
Message:

Update WordPress packages for 5.9.3.

Updated packages:

  • @wordpress/block-directory@3.0.29
  • @wordpress/block-library@6.0.28
  • @wordpress/customize-widgets@2.0.29
  • @wordpress/edit-post@5.0.29
  • @wordpress/edit-site@3.0.29
  • @wordpress/edit-widgets@3.1.24

Props mamaduka, jorgefilipecosta.
Fixes #55474.

File:
1 edited

Legend:

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

    r52766 r53030  
    7474        $button_internal_markup = '';
    7575        $button_classes         = $color_classes;
     76        $aria_label             = '';
    7677
    7778        if ( ! $is_button_inside ) {
     
    8384            }
    8485        } else {
     86            $aria_label             = sprintf( 'aria-label="%s"', esc_attr( wp_strip_all_tags( $attributes['label'] ) ) );
    8587            $button_classes        .= ' has-icon';
    8688            $button_internal_markup =
    8789                '<svg id="search-icon" class="search-icon" viewBox="0 0 24 24" width="24" height="24">
    88                     <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>
    89                 </svg>';
     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>';
    9092        }
    9193
    9294        $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>',
    9496            esc_attr( $button_classes ),
    9597            $inline_styles['button'],
     98            $aria_label,
    9699            $button_internal_markup
    97100        );
Note: See TracChangeset for help on using the changeset viewer.