From 1e4d04ee6b61cc8e9ba1bc6374bc59a98d1c7692 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 8 Feb 2010 18:24:01 +0000 Subject: [PATCH] Use post_password_required(). see #9015 git-svn-id: http://svn.automattic.com/wordpress/trunk@13027 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/comments.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-content/themes/twentyten/comments.php b/wp-content/themes/twentyten/comments.php index 647083c82..35c10ed53 100644 --- a/wp-content/themes/twentyten/comments.php +++ b/wp-content/themes/twentyten/comments.php @@ -4,15 +4,13 @@ $req = get_option('require_name_email'); // Checks if fields are required. if ( 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']) ) die ( 'Please do not load this page directly. Thanks!' ); - if ( ! empty($post->post_password) ) : - if ( $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password ) : + if ( post_password_required() ) : ?>