Make WordPress Core

Ticket #51877: 51877.patch

File 51877.patch, 680 bytes (added by vipulc2, 4 years ago)

Wrong parameter name used in searchform.php in Twenty Twenty changed $argslabel? to $argsaria_label?

  • searchform.php

    diff --git a/searchform.php b/searchform.php
    index 21e6efb..4ba6a05 100755
    a b  
    1717 */
    1818$unique_id = twentytwenty_unique_id( 'search-form-' );
    1919
    20 $aria_label = ! empty( $args['label'] ) ? 'aria-label="' . esc_attr( $args['label'] ) . '"' : '';
     20$aria_label = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : '';
    2121?>
    2222<form role="search" <?php echo $aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    2323        <label for="<?php echo esc_attr( $unique_id ); ?>">