forked from mirror/_s
Remove superfluous check from comment template (#935)
This commit is contained in:
parent
cc3c139a08
commit
34ab8ea00f
14
comments.php
14
comments.php
|
@ -58,16 +58,14 @@ if ( post_password_required() ) {
|
|||
|
||||
<?php the_comments_navigation();
|
||||
|
||||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
if ( ! comments_open() ) : ?>
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', '_s' ); ?></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endif; // Check for have_comments().
|
||||
|
||||
|
||||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
|
||||
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', '_s' ); ?></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
comment_form();
|
||||
?>
|
||||
|
||||
|
|
Reference in New Issue