Issues (631)

searchform.php (5 issues)

Labels
Severity
1
<?php
2
/**
3
 * The template for displaying search forms
4
 *
5
 * @package WordPress
6
 * @subpackage Strip
7
 */
8
9
?>
10
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
0 ignored issues
show
The function home_url was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

10
<form role="search" method="get" class="search-form" action="<?php echo esc_url( /** @scrutinizer ignore-call */ home_url( '/' ) ); ?>">
Loading history...
The function esc_url was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

10
<form role="search" method="get" class="search-form" action="<?php echo /** @scrutinizer ignore-call */ esc_url( home_url( '/' ) ); ?>">
Loading history...
11
	<label>
12
		<span class="screen-reader-text"><?php echo esc_attr_x( 'Search for:', 'label', 'strip' ); ?></span>
0 ignored issues
show
The function esc_attr_x was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

12
		<span class="screen-reader-text"><?php echo /** @scrutinizer ignore-call */ esc_attr_x( 'Search for:', 'label', 'strip' ); ?></span>
Loading history...
13
		<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search?', 'placeholder', 'strip' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" />
0 ignored issues
show
The function esc_attr was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

13
		<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search?', 'placeholder', 'strip' ); ?>" value="<?php echo /** @scrutinizer ignore-call */ esc_attr( get_search_query() ); ?>" name="s" />
Loading history...
The function get_search_query was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

13
		<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search?', 'placeholder', 'strip' ); ?>" value="<?php echo esc_attr( /** @scrutinizer ignore-call */ get_search_query() ); ?>" name="s" />
Loading history...
14
	</label>
15
	<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'strip' ); ?>">
16
</form>
17