WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/20/2020 01:33:02 PM (6 months ago)
Author:
youknowriad
Message:

Block Editor: Update the WordPress Packages to the latest version.

This includes the packages that match the Gutenberg 9.2 Release.
It is going to be the last block-editor features update for WordPress 5.6.
It also updates the block-supports code base to the latest APIs.

Props isabel_brison, noisysocks, desrosj.
Fixes #51570.

File:
1 edited

Legend:

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

    r49135 r49226  
    6666    if ( $show_button ) {
    6767        $button_internal_markup = '';
     68        $button_classes         = '';
    6869
    6970        if ( ! $use_icon_button ) {
     
    7273            }
    7374        } else {
     75            $button_classes        .= 'has-icon';
    7476            $button_internal_markup =
    75                 '<svg id="search-icon" class="search-icon" viewBox="0 0 24 24">
     77                '<svg id="search-icon" class="search-icon" viewBox="0 0 24 24" width="24" height="24">
    7678                    <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>
    7779                </svg>';
     
    7981
    8082        $button_markup = sprintf(
    81             '<button type="submit" class="wp-block-search__button">%s</button>',
     83            '<button type="submit"class="wp-block-search__button ' . $button_classes . '">%s</button>',
    8284            $button_internal_markup
    8385        );
     
    9092    }
    9193
    92     $field_markup = sprintf(
     94    $field_markup       = sprintf(
    9395        '<div class="wp-block-search__inside-wrapper"%s>%s</div>',
    9496        $width_styles,
    9597        $input_markup . $button_markup
    9698    );
     99    $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
    97100
    98101    return sprintf(
    99         '<form role="search" method="get" action="%s" class="%s">%s</form>',
     102        '<form role="search" method="get" action="%s" %s>%s</form>',
    100103        esc_url( home_url( '/' ) ),
    101         $classnames,
     104        $wrapper_attributes,
    102105        $label_markup . $field_markup
    103106    );
Note: See TracChangeset for help on using the changeset viewer.