remove comment_user_domain cruft. Props Nazgul. fixes #3197
git-svn-id: https://develop.svn.wordpress.org/trunk@4293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9e0b62e2d0
commit
d63bbe60c1
|
@ -173,8 +173,6 @@ function wp_allow_comment($commentdata) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
extract($commentdata);
|
extract($commentdata);
|
||||||
|
|
||||||
$comment_user_domain = apply_filters('pre_comment_user_domain', gethostbyaddr($comment_author_IP) );
|
|
||||||
|
|
||||||
// Simple duplicate check
|
// Simple duplicate check
|
||||||
$dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND ( comment_author = '$comment_author' ";
|
$dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND ( comment_author = '$comment_author' ";
|
||||||
if ( $comment_author_email )
|
if ( $comment_author_email )
|
||||||
|
|
Loading…
Reference in New Issue