Ticket #3197: 3197.diff

File 3197.diff, 0.5 kB (added by Nazgul, 2 years ago)
  • wp-includes/comment.php

    old new  
    173173        global $wpdb; 
    174174        extract($commentdata); 
    175175 
    176         $comment_user_domain = apply_filters('pre_comment_user_domain', gethostbyaddr($comment_author_IP) ); 
    177  
    178176        // Simple duplicate check 
    179177        $dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND ( comment_author = '$comment_author' "; 
    180178        if ( $comment_author_email )