Remove superfluous check from comment template (#935)

This commit is contained in:
Jasper de Groot 2017-07-14 17:52:14 +02:00 committed by David A. Kennedy
parent cc3c139a08
commit 34ab8ea00f
1 changed files with 6 additions and 8 deletions

View File

@ -58,16 +58,14 @@ if ( post_password_required() ) {
<?php the_comments_navigation(); <?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 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> <p class="no-comments"><?php esc_html_e( 'Comments are closed.', '_s' ); ?></p>
<?php <?php
endif; endif;
endif; // Check for have_comments().
comment_form(); comment_form();
?> ?>