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