Make WordPress Core


Ignore:
Timestamp:
07/02/2005 11:41:07 PM (21 years ago)
Author:
matt
Message:

Unecessary query, fixes #1456

File:
1 edited

Legend:

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

    r2644 r2688  
    246246    $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1");
    247247    $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1");
    248     $user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID='$post->post_author' LIMIT 1");
    249248
    250249    $comment_author_domain = gethostbyaddr($comment->comment_author_IP);
Note: See TracChangeset for help on using the changeset viewer.