Passed
Push — master ( 1b85a4...393c08 )
by SILENT
01:25
created

index.php (13 issues)

1
<?php
2
/**
3
 * The main template file
4
 *
5
 * This is the most generic template file in a WordPress theme
6
 * and one of the two required files for a theme (the other being style.css).
7
 * It is used to display a page when nothing more specific matches a query.
8
 * E.g., it puts together the home page when no home.php file exists.
9
 *
10
 * @link https://codex.wordpress.org/Template_Hierarchy
11
 *
12
 * @package Strip
13
 */
14
15
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

15
/** @scrutinizer ignore-call */ 
16
get_header(); ?>
Loading history...
16
17
	<div id="primary" class="content-area">
18
		<div id="content" class="site-content" role="main">
19
20
		<?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

20
		<?php if ( /** @scrutinizer ignore-call */ have_posts() ) : ?>
Loading history...
21
22
	<?php /* Start the Loop */ ?>
23
			<?php while ( have_posts() ) :
24
				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

24
				/** @scrutinizer ignore-call */ 
25
    the_post(); ?>
Loading history...
25
26
				<?php
27
28
				/*
29
				*
30
				* Include the Post-Format-specific template for the content.
31
				* If you want to override this in a child theme, then include a file
32
				* called content-___.php (where ___ is the Post Format name) and that will be used instead.
33
				*/
34
					get_template_part( 'content', get_post_format() );
0 ignored issues
show
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

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

34
					/** @scrutinizer ignore-call */ 
35
     get_template_part( 'content', get_post_format() );
Loading history...
35
				?>
36
37
			<?php endwhile; ?>
38
39
			<div class="wrap">
40
					<?php the_posts_pagination( array(
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

40
					<?php /** @scrutinizer ignore-call */ the_posts_pagination( array(
Loading history...
41
						'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
0 ignored issues
show
Expected a sanitizing function (see Codex for 'Data Validation'), but instead saw '__'
Loading history...
The function _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

41
						'prev_text' => /** @scrutinizer ignore-call */ _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . __( 'Previous page', 'strip' ) . '</span>',
Loading history...
The function __ 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

41
						'prev_text' => _x( '&#8592;', 'Previous page link', 'strip' ) . '<span class="screen-reader-text">' . /** @scrutinizer ignore-call */ __( 'Previous page', 'strip' ) . '</span>',
Loading history...
42
						'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'strip' ) . '</span>' . _x( '&#8594;', 'Next post link', 'strip' ),
0 ignored issues
show
Expected a sanitizing function (see Codex for 'Data Validation'), but instead saw '__'
Loading history...
Expected a sanitizing function (see Codex for 'Data Validation'), but instead saw '_x'
Loading history...
43
						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>',
0 ignored issues
show
Expected a sanitizing function (see Codex for 'Data Validation'), but instead saw '__'
Loading history...
44
					) ); ?>
45
	</div>
46
47
		<?php else : ?>
48
49
			<?php get_template_part( 'no-results', 'index' ); ?>
50
51
		<?php endif; ?>
52
53
		</div><!-- #content -->
54
	</div><!-- #primary -->
55
56
<?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

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