From e12533e0cbbf52a284d693af2b2927d9fc2150df Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 8 Feb 2010 18:24:01 +0000 Subject: [PATCH] Use post_password_required(). see #9015 git-svn-id: https://develop.svn.wordpress.org/trunk@13027 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 647083c82d..35c10ed532 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() ) : ?>