Make WordPress Core

Changeset 4287


Ignore:
Timestamp:
10/04/2006 03:05:46 AM (18 years ago)
Author:
ryan
Message:

Silence gethostbyaddr(). Props MarkJaquith. fixes #2759

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/pluggable-functions.php

    r4273 r4287  
    338338    if ('' == $user->user_email) return false; // If there's no email to send the comment to
    339339
    340     $comment_author_domain = gethostbyaddr($comment->comment_author_IP);
     340    $comment_author_domain = @gethostbyaddr($comment->comment_author_IP);
    341341
    342342    $blogname = get_settings('blogname');
     
    415415    $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1");
    416416
    417     $comment_author_domain = gethostbyaddr($comment->comment_author_IP);
     417    $comment_author_domain = @gethostbyaddr($comment->comment_author_IP);
    418418    $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'");
    419419
Note: See TracChangeset for help on using the changeset viewer.