mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
remove comment_user_domain cruft. Props Nazgul. fixes #3197
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fdb244801f
commit
c943974cbb
@ -109,8 +109,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
Block a user