From 8089a0683ec35375274ac5f383e3b5259729cb8f 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: http://core.svn.wordpress.org/trunk@21621 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- comments.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/comments.php b/comments.php index c314d8153..2bb01d091 100644 --- a/comments.php +++ b/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; ?> - +