From 4e6d018d53ee5950851ff1540185ddb1e1e4bb4b Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Sat, 25 Aug 2012 17:41:32 +0000 Subject: [PATCH] Twenty Twelve: comments.php, cleanup and better indentation. Props obenland, see #21685. git-svn-id: https://develop.svn.wordpress.org/trunk@21621 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/comments.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-content/themes/twentytwelve/comments.php b/wp-content/themes/twentytwelve/comments.php index c314d81533..2bb01d0918 100644 --- a/wp-content/themes/twentytwelve/comments.php +++ b/wp-content/themes/twentytwelve/comments.php @@ -11,16 +11,16 @@ * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ + +/* + * If the current post is protected by a password and + * the visitor has not yet entered the password we will + * return early without loading the comments. + */ +if ( post_password_required() ) + return; ?> - +