Changeset 22229
- Timestamp:
- 10/14/2012 05:06:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r22110 r22229 670 670 // Simple duplicate check 671 671 // expected_slashed ($comment_post_ID, $comment_author, $comment_author_email, $comment_content) 672 $dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_ approved != 'trash' AND ( comment_author = '$comment_author' ";672 $dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_parent = '$comment_parent' AND comment_approved != 'trash' AND ( comment_author = '$comment_author' "; 673 673 if ( $comment_author_email ) 674 674 $dupe .= "OR comment_author_email = '$comment_author_email' ";
Note: See TracChangeset
for help on using the changeset viewer.