Changeset 1355 for trunk/wp-comments-popup.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-popup.php
r1108 r1355 35 35 $comment_author_email = (isset($_COOKIE['comment_author_email_'.$cookiehash])) ? trim($_COOKIE['comment_author_email_'.$cookiehash]) : ''; 36 36 $comment_author_url = (isset($_COOKIE['comment_author_url_'.$cookiehash])) ? trim($_COOKIE['comment_author_url_'.$cookiehash]) : ''; 37 $comments = $wpdb->get_results("SELECT * FROM $ tablecomments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");38 $commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $ tableposts WHERE ID = $id");37 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date"); 38 $commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $wpdb->posts WHERE ID = $id"); 39 39 if (!empty($commentstatus->post_password) && $_COOKIE['wp-postpass_'.$cookiehash] != $commentstatus->post_password) { // and it doesn't match the cookie 40 40 echo(get_the_password_form());
Note: See TracChangeset
for help on using the changeset viewer.