Make WordPress Core

Ticket #49523: 49523.diff

File 49523.diff, 816 bytes (added by fahimmurshed, 4 years ago)

Patch

Line 
118c18
2< $unique_id = twentytwenty_unique_id( 'search-form-' );
3---
4> $twentytwenty_unique_id = twentytwenty_unique_id( 'search-form' );
520c20
6< $aria_label = ! empty( $args['label'] ) ? 'aria-label="' . esc_attr( $args['label'] ) . '"' : '';
7---
8> $twentytwenty_aria_label = ! empty( $args['label'] ) ? 'aria-label="' . esc_attr( $args['label'] ) . '"' : '';
922c22
10< <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( '/' ) ); ?>">
11---
12> <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( '/' ) ); ?>">