Update comparisons to resolve the strict comparison warnings. See https://github.com/Automattic/_s/issues/784

This commit is contained in:
Grant Palin 2015-08-07 09:59:26 -07:00
parent d02cc4fa70
commit af0a4749be
5 changed files with 6 additions and 6 deletions

View file

@ -72,7 +72,7 @@ if ( post_password_required() ) {
<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
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; ?>