forked from mirror/_s
Remove superfluous check from comment template (#935)
This commit is contained in:
parent
cc3c139a08
commit
34ab8ea00f
|
@ -58,16 +58,14 @@ if ( post_password_required() ) {
|
|||
|
||||
<?php the_comments_navigation();
|
||||
|
||||
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' ) ) : ?>
|
||||
|
||||
if ( ! comments_open() ) : ?>
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', '_s' ); ?></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endif; // Check for have_comments().
|
||||
|
||||
comment_form();
|
||||
?>
|
||||
|
||||
|
|
Reference in New Issue