From 2ad1038e9910dda05fb38a296dacea254993e04c Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 16 Nov 2012 21:31:02 +0000 Subject: [PATCH] Twenty Eleven: in comments template check `get_comments_number()` instead of using `$comments_by_type` for showing a comments closed message. Props kovshenin, see #20469. git-svn-id: https://develop.svn.wordpress.org/trunk@22616 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyeleven/comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/twentyeleven/comments.php b/wp-content/themes/twentyeleven/comments.php index 63f48280b5..6b77feeacc 100644 --- a/wp-content/themes/twentyeleven/comments.php +++ b/wp-content/themes/twentyeleven/comments.php @@ -67,7 +67,7 @@ /* If there are no comments and comments are closed, let's leave a little note, shall we? * But we only want the note on posts and pages that had comments in the first place. */ - if ( ! comments_open() && ! empty( $comments_by_type['comment'] ) ) : ?> + if ( ! comments_open() && get_comments_number() ) : ?>