Edit File by line
/home/barbar84/www/wp-conte.../themes/twentytw...
File: searchform.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The searchform.php template.
[2] Fix | Delete
*
[3] Fix | Delete
* Used any time that get_search_form() is called.
[4] Fix | Delete
*
[5] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
[6] Fix | Delete
*
[7] Fix | Delete
* @package WordPress
[8] Fix | Delete
* @subpackage Twenty_Twenty
[9] Fix | Delete
* @since Twenty Twenty 1.0
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
/*
[13] Fix | Delete
* Generate a unique ID for each form and a string containing an aria-label
[14] Fix | Delete
* if one was passed to get_search_form() in the args array.
[15] Fix | Delete
*/
[16] Fix | Delete
$twentytwenty_unique_id = twentytwenty_unique_id( 'search-form-' );
[17] Fix | Delete
[18] Fix | Delete
$twentytwenty_aria_label = ! empty( $args['label'] ) ? 'aria-label="' . esc_attr( $args['label'] ) . '"' : '';
[19] Fix | Delete
?>
[20] Fix | Delete
<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( '/' ) ); ?>">
[21] Fix | Delete
<label for="<?php echo esc_attr( $twentytwenty_unique_id ); ?>">
[22] Fix | Delete
<span class="screen-reader-text"><?php _e( 'Search for:', 'twentytwenty' ); // phpcs:ignore: WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations ?></span>
[23] Fix | Delete
<input type="search" id="<?php echo esc_attr( $twentytwenty_unique_id ); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentytwenty' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
[24] Fix | Delete
</label>
[25] Fix | Delete
<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'twentytwenty' ); ?>" />
[26] Fix | Delete
</form>
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function