Ticket #51877: 51877.2.patch
File 51877.2.patch, 2.5 KB (added by , 4 years ago) |
---|
-
src/wp-content/themes/twentytwenty/404.php
21 21 <?php 22 22 get_search_form( 23 23 array( 24 ' label' => __( '404 not found', 'twentytwenty' ),24 'aria_label' => __( '404 not found', 'twentytwenty' ), 25 25 ) 26 26 ); 27 27 ?> -
src/wp-content/themes/twentytwenty/index.php
98 98 <?php 99 99 get_search_form( 100 100 array( 101 ' label' => __( 'search again', 'twentytwenty' ),101 'aria_label' => __( 'search again', 'twentytwenty' ), 102 102 ) 103 103 ); 104 104 ?> -
src/wp-content/themes/twentytwenty/searchform.php
17 17 */ 18 18 $twentytwenty_unique_id = twentytwenty_unique_id( 'search-form-' ); 19 19 20 $twentytwenty_aria_label = ! empty( $args['label'] ) ? 'aria-label="' . esc_attr( $args['label'] ) . '"' : ''; 20 $twentytwenty_aria_label = ! empty( $args['aria_label'] ) ? 'aria-label="' . esc_attr( $args['aria_label'] ) . '"' : ''; 21 // Backward compatibility, in case a child theme template uses a `label` argument 22 if ( empty( $twentytwenty_aria_label ) && ! empty( $args['label'] ) ) { 23 $twentytwenty_aria_label = 'aria-label="' . esc_attr( $args['label'] ) . '"'; 24 } 21 25 ?> 22 26 <form role="search" <?php echo $twentytwenty_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> 23 27 <label for="<?php echo esc_attr( $twentytwenty_unique_id ); ?>"> -
src/wp-content/themes/twentytwenty/template-parts/modal-search.php
17 17 <?php 18 18 get_search_form( 19 19 array( 20 ' label' => __( 'Search for:', 'twentytwenty' ),20 'aria_label' => __( 'Search for:', 'twentytwenty' ), 21 21 ) 22 22 ); 23 23 ?>