From 8a34ca772ff6f44fa236902f976b27a936357d53 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 9 Jan 2004 09:08:05 +0000 Subject: [PATCH] The cookie monster has been vanquished. git-svn-id: https://develop.svn.wordpress.org/trunk@744 602fd350-edb4-49c9-b593-d223f7449a82 --- 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