From b3711fba97a8bb8c5e38ab03497249228e0ad8ba 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 --- 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; ?> - +