Remove 'comments closed' message from pages

This commit is contained in:
Tiago Noronha 2018-11-23 11:36:53 +00:00
parent a31268e441
commit 4b5f720555
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ if ( post_password_required() ) {
endif;
if ( ! comments_open() && 0 !== get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
if ( ! comments_open() && '0' !== get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'storefront' ); ?></p>
<?php

View file

@ -13,7 +13,7 @@ if ( ! function_exists( 'storefront_display_comments' ) ) {
*/
function storefront_display_comments() {
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || 0 !== get_comments_number() ) :
if ( comments_open() || '0' !== get_comments_number() ) :
comments_template();
endif;
}