Ticket #10944: comment.php.diff
| File comment.php.diff, 768 bytes (added by , 16 years ago) |
|---|
-
comment.php
490 490 491 491 // Simple duplicate check 492 492 // expected_slashed ($comment_post_ID, $comment_author, $comment_author_email, $comment_content) 493 $dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND ( comment_author = '$comment_author' ";493 $dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_approved <> 'trash' AND ( comment_author = '$comment_author' "; 494 494 if ( $comment_author_email ) 495 495 $dupe .= "OR comment_author_email = '$comment_author_email' "; 496 496 $dupe .= ") AND comment_content = '$comment_content' LIMIT 1";