Changeset 50933 for trunk/src/wp-content/themes/twentytwenty/searchform.php
- Timestamp:
- 05/19/2021 06:38:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/searchform.php
r47393 r50933 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( '/' ) ); ?>">
Note: See TracChangeset
for help on using the changeset viewer.