'1.2'); if (($is_new) or ($withcomments) or ($single)) { if (!empty($post->post_password)) { // if there's a password if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie ?>
comments) // this makes it work in both 1.2 and 1.3 $tablecomments = $wpdb->comments; $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_post_ID = '$id' AND comment_approved = '1' ORDER BY comment_date"); ?>