Issues (631)

content-comic.php (21 issues)

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

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

10
<article id="post-<?php the_ID(); ?>" <?php /** @scrutinizer ignore-call */ post_class(); ?>>
Loading history...
11
	<div class="entry-wrap wrap clear">
12
		<?php if ( '' !== get_the_post_thumbnail() ) : ?>
0 ignored issues
show
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

12
		<?php if ( '' !== /** @scrutinizer ignore-call */ get_the_post_thumbnail() ) : ?>
Loading history...
13
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 endif; ?>
18
19
		<footer class="entry-meta">
20
			<a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a>
0 ignored issues
show
The function get_the_date 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
			<a href="<?php the_permalink(); ?>"><?php echo /** @scrutinizer ignore-call */ get_the_date(); ?></a>
Loading history...
21
		</footer><!-- .entry-meta -->
22
23
		<header class="entry-header">
24
25
			<?php // calls each series by get_the_terms, custom taxonomy "story" instead of WP native category.
26
27
			$terms = get_the_terms( $post->ID, 'story' );
0 ignored issues
show
The function get_the_terms 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

27
			$terms = /** @scrutinizer ignore-call */ get_the_terms( $post->ID, 'story' );
Loading history...
28
29
			foreach ( $terms as $term ) {
30
				// The $term is an object, so we don't need to specify the $taxonomy.
31
				$term_link = get_term_link( $term );
0 ignored issues
show
The function get_term_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

31
				$term_link = /** @scrutinizer ignore-call */ get_term_link( $term );
Loading history...
32
				// If there was an error, continue to the next term.
33
				if ( is_wp_error( $term_link ) ) {
0 ignored issues
show
The function is_wp_error 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

33
				if ( /** @scrutinizer ignore-call */ is_wp_error( $term_link ) ) {
Loading history...
34
					continue;
35
				}
36
37
				// We successfully got a link. Print it out. ?>
38
		<nav class="categories-links">
39
				<?php printf( '<a href="%s" class="categories-links">%s</a>',
40
					esc_url( $term_link ) ,
0 ignored issues
show
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
					/** @scrutinizer ignore-call */ 
41
     esc_url( $term_link ) ,
Loading history...
41
					esc_html( $term->name )
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

41
					/** @scrutinizer ignore-call */ 
42
     esc_html( $term->name )
Loading history...
42
				);
43
			} ?>
44
	  </nav>
45
46
		<?php	edit_post_link( __( 'Edit Comic', '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

46
		<?php	/** @scrutinizer ignore-call */ edit_post_link( __( 'Edit Comic', 'strip' ), '<span class="edit-link">', '</span>' );
Loading history...
47
48
		if ( ! 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

48
		if ( ! /** @scrutinizer ignore-call */ is_single() ) :
Loading history...
49
			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

49
			/** @scrutinizer ignore-call */ 
50
   the_title( '<h1 class="entry-title"><a href="' . 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

49
			the_title( '<h1 class="entry-title"><a href="' . esc_url( /** @scrutinizer ignore-call */ get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
Loading history...
50
			else :
51
					the_title( '<h1 class="entry-title">', '</h1>' );
52
			endif; ?>
53
54
	</header><!-- .entry-header -->
55
56
	<?php if ( is_search() ) : // Only display Excerpts for Search — implement search for custom taxonomies. ?>
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

56
	<?php if ( /** @scrutinizer ignore-call */ is_search() ) : // Only display Excerpts for Search — implement search for custom taxonomies. ?>
Loading history...
57
58
		<div class="entry-summary">
59
60
			<?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

60
			<?php /** @scrutinizer ignore-call */ the_excerpt(); ?>
Loading history...
61
		</div><!-- .entry-summary -->
62
63
		<?php else : ?>
64
65
	<div class="entry-comic">
66
		<?php the_content( __( 'Continue watching <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
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

66
		<?php /** @scrutinizer ignore-call */ the_content( __( 'Continue watching <span class="meta-nav">&rarr;</span>', 'strip' ) ); ?>
Loading history...
67
68
			<?php endif; ?>
69
		</div><!-- .entry-content -->
70
	</div><!-- .entry-wrap -->
71
</article>
72