Make WordPress Core


Ignore:
Timestamp:
05/19/2021 06:38:53 PM (4 years 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/404.php

    r46827 r50933  
    2222        get_search_form(
    2323            array(
    24                 'label' => __( '404 not found', 'twentytwenty' ),
     24                'aria_label' => __( '404 not found', 'twentytwenty' ),
    2525            )
    2626        );
Note: See TracChangeset for help on using the changeset viewer.