From d72336975ffd21295d6223a18dbc511060031fff Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 9 Jan 2004 09:08:05 +0000 Subject: [PATCH] The cookie monster has been vanquished. git-svn-id: http://svn.automattic.com/wordpress/trunk@744 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-comments-popup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-comments-popup.php b/wp-comments-popup.php index 89ae1b9bdc..03786f9773 100644 --- a/wp-comments-popup.php +++ b/wp-comments-popup.php @@ -31,6 +31,9 @@ foreach ($posts as $post) { start_wp(); get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date"); $commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $tableposts WHERE ID = $id"); if (!empty($commentstatus->post_password) && $HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $commentstatus->post_password) { // and it doesn't match the cookie