Issues (631)

content.php (24 issues)

Labels
Severity
1
<?php
2
/**
3
 * The template part for displaying content
4
 *
5
 * @package WordPress
6
 * @subpackage Strip
7
 */
8
9
?>
10
11
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
0 ignored issues
show
The function post_class 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

11
<article id="post-<?php the_ID(); ?>" <?php /** @scrutinizer ignore-call */ post_class(); ?>>
Loading history...
The function the_ID 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

11
<article id="post-<?php /** @scrutinizer ignore-call */ the_ID(); ?>" <?php post_class(); ?>>
Loading history...
12
	<div class="wrap">
13
			<?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?>
0 ignored issues
show
The function is_single 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
			<?php if ( '' !== get_the_post_thumbnail() && ! /** @scrutinizer ignore-call */ is_single() ) : ?>
Loading history...
The function get_the_post_thumbnail 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
			<?php if ( '' !== /** @scrutinizer ignore-call */ get_the_post_thumbnail() && ! is_single() ) : ?>
Loading history...
14
			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail">
0 ignored issues
show
The function the_permalink 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
			<a href="<?php /** @scrutinizer ignore-call */ the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail">
Loading history...
The function the_title_attribute 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
			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), /** @scrutinizer ignore-call */ the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail">
Loading history...
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

14
			<a href="<?php the_permalink(); ?>" title="<?php echo /** @scrutinizer ignore-call */ esc_attr( sprintf( __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail">
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

14
			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( /** @scrutinizer ignore-call */ __( 'Permalink to %s', 'strip' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="strip-featured-thumbnail">
Loading history...
15
				<?php the_post_thumbnail( 'strip-featured-image' ); ?>
0 ignored issues
show
The function the_post_thumbnail 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
				<?php /** @scrutinizer ignore-call */ the_post_thumbnail( 'strip-featured-image' ); ?>
Loading history...
16
			</a>
17
			<?php else : ?>
18
				<?php the_post_thumbnail( 'strip-featured-image' ); ?>
19
			<?php endif; ?>
20
21
		<header class="entry-header">
22
			<?php
23
			$categories_list = get_the_category_list( __( ', ', 'strip' ) );
0 ignored issues
show
The function get_the_category_list 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

23
			$categories_list = /** @scrutinizer ignore-call */ get_the_category_list( __( ', ', 'strip' ) );
Loading history...
24
			if ( $categories_list && strip_categorized_blog() ) {
25
				echo '<span class="categories-links">' . $categories_list . '</span>';
26
			}
27
			if ( ! is_single() ) :
28
				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
0 ignored issues
show
The function the_title 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_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
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

28
				the_title( '<h1 class="entry-title"><a href="' . /** @scrutinizer ignore-call */ esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
Loading history...
The function get_permalink 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
				the_title( '<h1 class="entry-title"><a href="' . esc_url( /** @scrutinizer ignore-call */ get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
Loading history...
29
			else :
30
					the_title( '<h1 class="entry-title">', '</h1>' );
31
			endif;
32
			?>
33
		</header><!-- .entry-header -->
34
35
		<footer class="entry-meta">
36
			<?php strip_entry_meta(); ?>
37
38
			<?php if ( ! post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?>
0 ignored issues
show
The function post_password_required 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

38
			<?php if ( ! /** @scrutinizer ignore-call */ post_password_required() && ( comments_open() || '0' !== get_comments_number() ) ) : ?>
Loading history...
The function get_comments_number 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

38
			<?php if ( ! post_password_required() && ( comments_open() || '0' !== /** @scrutinizer ignore-call */ get_comments_number() ) ) : ?>
Loading history...
The function comments_open 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

38
			<?php if ( ! post_password_required() && ( /** @scrutinizer ignore-call */ comments_open() || '0' !== get_comments_number() ) ) : ?>
Loading history...
39
			<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'strip' ), __( '1 Comment', 'strip' ), __( '% Comments', 'strip' ) ); ?></span>
0 ignored issues
show
The function comments_popup_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

39
			<span class="comments-link"><?php /** @scrutinizer ignore-call */ comments_popup_link( __( 'Leave a comment', 'strip' ), __( '1 Comment', 'strip' ), __( '% Comments', 'strip' ) ); ?></span>
Loading history...
40
			<?php endif; ?>
41
42
			<?php edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
0 ignored issues
show
The function edit_post_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

42
			<?php /** @scrutinizer ignore-call */ edit_post_link( __( 'Edit', 'strip' ), '<span class="edit-link">', '</span>' ); ?>
Loading history...
43
		</footer><!-- .entry-meta -->
44
45
		<?php if ( is_search() ) : // Only display Excerpts for Search. ?>
0 ignored issues
show
The function is_search 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

45
		<?php if ( /** @scrutinizer ignore-call */ is_search() ) : // Only display Excerpts for Search. ?>
Loading history...
46
		<div class="entry-summary">
47
			<?php the_excerpt(); ?>
0 ignored issues
show
The function the_excerpt 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

47
			<?php /** @scrutinizer ignore-call */ the_excerpt(); ?>
Loading history...
48
		</div><!-- .entry-summary -->
49
		<?php else : ?>
50
		<div class="entry-content">
51
			<?php
52
			the_content(sprintf(
0 ignored issues
show
The function the_content 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
			/** @scrutinizer ignore-call */ 
53
   the_content(sprintf(
Loading history...
53
				/* translators: %s: Name of current post. */
54
				esc_html( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ),
0 ignored issues
show
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

54
				/** @scrutinizer ignore-call */ 
55
    esc_html( __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'strip' ), array( 'span' => array( 'class' => array() ) ) ),
Loading history...
55
				get_the_title( '<span class="screen-reader-text">"', '"</span>', false )
0 ignored issues
show
The function get_the_title 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

55
				/** @scrutinizer ignore-call */ 
56
    get_the_title( '<span class="screen-reader-text">"', '"</span>', false )
Loading history...
56
			));
57
58
			wp_link_pages(array(
0 ignored issues
show
The function wp_link_pages 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

58
			/** @scrutinizer ignore-call */ 
59
   wp_link_pages(array(
Loading history...
59
				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'strip' ) . '</span>',
60
				'after'       => '</div>',
61
				'link_before' => '<span>',
62
				'link_after'  => '</span>',
63
				'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'strip' ) . ' </span>%',
64
				'separator'   => '<span class="screen-reader-text">, </span>',
65
			));
66
		?>
67
68
		</div><!-- .entry-content -->
69
		<?php endif; ?>
70
	</div><!-- .entry-wrap -->
71
</article><!-- #post-## -->
72