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();
// 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();
?>