Issues (311)

comments.php (7 issues)

Labels
Severity
1
<?php
2
/**
3
 * The template for displaying comments
4
 *
5
 * This is the template that displays the area of the page that contains both the current comments
6
 * and the comment form.
7
 *
8
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
9
 *
10
 * @package DesignFly
11
 */
12
13
/*
14
 * If the current post is protected by a password and
15
 * the visitor has not yet entered the password we will
16
 * return early without loading the comments.
17
 */
18
if ( post_password_required() ) {
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

18
if ( /** @scrutinizer ignore-call */ post_password_required() ) {
Loading history...
19
	return;
20
}
21
?>
22
23
<div id="comments" class="comments-area">
24
25
	<?php
26
	if ( have_comments() ) :
0 ignored issues
show
The function have_comments 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

26
	if ( /** @scrutinizer ignore-call */ have_comments() ) :
Loading history...
27
		?>
28
29
		<?php the_comments_navigation(); ?>
0 ignored issues
show
The function the_comments_navigation 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

29
		<?php /** @scrutinizer ignore-call */ the_comments_navigation(); ?>
Loading history...
30
31
		<ol class="comment-list">
32
			<?php
33
			wp_list_comments( array(
0 ignored issues
show
The function wp_list_comments 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
			/** @scrutinizer ignore-call */ 
34
   wp_list_comments( array(
Loading history...
34
				'type' => 'comment',
35
				'callback' => 'designfly_custom_comments'
36
			) );
37
			?>
38
		</ol><!-- .comment-list -->
39
40
		
41
		<hr class="bar">
42
		<p class="post-comment"><?php esc_html_e( 'Post your comment', 'designfly' ); ?></p>
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

42
		<p class="post-comment"><?php /** @scrutinizer ignore-call */ esc_html_e( 'Post your comment', 'designfly' ); ?></p>
Loading history...
43
44
		<?php
45
		the_comments_navigation();
46
47
		// If comments are closed and there are comments, let's leave a little note, shall we?
48
		if ( ! comments_open() ) :
0 ignored issues
show
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

48
		if ( ! /** @scrutinizer ignore-call */ comments_open() ) :
Loading history...
49
			?>
50
			<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'designfly' ); ?></p>
51
			<?php
52
		endif;
53
54
	endif; // Check for have_comments().
55
56
	comment_form();
0 ignored issues
show
The function comment_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

56
	/** @scrutinizer ignore-call */ 
57
 comment_form();
Loading history...
57
	?>
58
59
</div><!-- #comments -->
60