Changeset 2699 for trunk/wp-includes/comment-functions.php
- Timestamp:
- 07/05/2005 08:47:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-functions.php
r2685 r2699 14 14 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date"); 15 15 } else { 16 $author_db = addslashes($comment_author);17 $email_db = addslashes($comment_author_email);16 $author_db = $wpdb->escape($comment_author); 17 $email_db = $wpdb->escape($comment_author_email); 18 18 $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND ( comment_approved = '1' OR ( comment_author = '$author_db' AND comment_author_email = '$email_db' AND comment_approved = '0' ) ) ORDER BY comment_date"); 19 19 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)