WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/14/2020 11:36:39 AM (2 months ago)
Author:
ellatrix
Message:

Editor: update packages for beta 2

Fixes #50651.

File:
1 edited

Legend:

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

    r48177 r48469  
    1515function render_block_core_search( $attributes ) {
    1616    static $instance_id = 0;
     17
     18    // Older versions of the Search block defaulted the label and buttonText
     19    // attributes to `__( 'Search' )` meaning that many posts contain `<!--
     20    // wp:search /-->`. Support these by defaulting an undefined label and
     21    // buttonText to `__( 'Search' )`.
     22    $attributes = wp_parse_args(
     23        $attributes,
     24        array(
     25            'label'      => __( 'Search' ),
     26            'buttonText' => __( 'Search' ),
     27        )
     28    );
    1729
    1830    $input_id      = 'wp-block-search__input-' . ++$instance_id;
Note: See TracChangeset for help on using the changeset viewer.