Issues (631)

search.php (13 issues)

Labels
Severity
1
<?php
2
/**
3
 * The template for displaying Search Results pages.
4
 *
5
 * @package WordPress
6
 * @subpackage Strip
7
 */
8
9
get_header(); ?>
0 ignored issues
show
The function get_header 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

9
/** @scrutinizer ignore-call */ 
10
get_header(); ?>
Loading history...
10
<div class="wrap">
11
	<section id="primary"
12
	<main id="content" role="main">
13
14
		<?php if ( have_posts() ) : ?>
0 ignored issues
show
The function have_posts 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

14
		<?php if ( /** @scrutinizer ignore-call */ have_posts() ) : ?>
Loading history...
15
16
			<header class="page-header">
17
				<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
0 ignored issues
show
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

17
				<h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . /** @scrutinizer ignore-call */ get_search_query() . '</span>' ); ?></h1>
Loading history...
The function esc_html__ 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

17
				<h1 class="page-title"><?php printf( /** @scrutinizer ignore-call */ esc_html__( 'Search Results for: %s', 'strip' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
Loading history...
18
			</header><!-- .page-header -->
19
20
			<?php /* Start the Loop */ ?>
21
			<?php while ( have_posts() ) :
22
				the_post();
0 ignored issues
show
The function the_post 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

22
				/** @scrutinizer ignore-call */ 
23
    the_post();
Loading history...
23
24
				get_template_part( 'content', get_post_format() );
0 ignored issues
show
The function get_template_part 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

24
				/** @scrutinizer ignore-call */ 
25
    get_template_part( 'content', get_post_format() );
Loading history...
The function get_post_format 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

24
				get_template_part( 'content', /** @scrutinizer ignore-call */ get_post_format() );
Loading history...
25
26
			endwhile;
27
28
			the_posts_pagination();
0 ignored issues
show
The function the_posts_pagination 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

28
			/** @scrutinizer ignore-call */ 
29
   the_posts_pagination();
Loading history...
29
30
		else : ?>
31
32
<article id="post-0" class="no-results">
33
	<header class="page-header">
34
		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'strip' ); ?></h1>
0 ignored issues
show
The function esc_html_e 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

34
		<h1 class="page-title"><?php /** @scrutinizer ignore-call */ esc_html_e( 'Nothing Found', 'strip' ); ?></h1>
Loading history...
35
	</header><!-- .page-header -->
36
<div class="entry-content">
37
			<p> <?php esc_html_e( 'Bummer, I cannot find what you are looking for.
38
				Would you like to search in the', 'strip' ); ?>
39
40
			<a href="<?php echo esc_url( get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>
0 ignored issues
show
The function get_post_type_archive_link 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

40
			<a href="<?php echo esc_url( /** @scrutinizer ignore-call */ get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>
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

40
			<a href="<?php echo /** @scrutinizer ignore-call */ esc_url( get_post_type_archive_link( 'comic' ) ); ?>">Comics Archive</a>? Great stuff there.</p>
Loading history...
41
42
			<p><?php esc_html_e( 'Or do you prefer trying another search with different keywords?', 'strip' ); ?></p>
43
44
			<?php get_search_form(); ?>
0 ignored issues
show
The function get_search_form 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

44
			<?php /** @scrutinizer ignore-call */ get_search_form(); ?>
Loading history...
45
46
		<?php endif; ?>
47
		</div><!-- .entry-content -->
48
	</main><!-- #content -->
49
</section><!-- #primary -->
50
</div><!-- .wrap -->
51
52
<?php get_footer(); ?>
0 ignored issues
show
The function get_footer 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

52
<?php /** @scrutinizer ignore-call */ get_footer(); ?>
Loading history...
53