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() ) : ?>