WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2021 06:38:53 PM (5 months ago)
Author:
davidbaumwald
Message:

Twenty Twenty: Correct label attribute references to aria_label in get_search_form.

In the bundled Twenty Twenty theme, a label argument was passed to get_search_form but used as the aria_label on the form. This change updates the argument name to aria_label and maintains backwards compatibility for usage of the original label argument.

Props poena, sabernhardt, ipulc2, kishanjasani, mukesh27.
Fixes #51877.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/index.php

    r48355 r50933  
    9999            get_search_form(
    100100                array(
    101                     'label' => __( 'search again', 'twentytwenty' ),
     101                    'aria_label' => __( 'search again', 'twentytwenty' ),
    102102                )
    103103            );
Note: See TracChangeset for help on using the changeset viewer.