From d9f2285155d34894504c7b9465d4673010d8d41c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 27 Apr 2007 04:34:44 +0000 Subject: [PATCH] Use the right field name ya idjit. git-svn-id: https://develop.svn.wordpress.org/trunk@5329 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index f71c2c975f..c5ef466322 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -84,7 +84,7 @@ function &get_comment(&$comment, $output = OBJECT) { $_comment = & $comment_cache[$comment->comment_ID]; } else { $comment = (int) $comment; - if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->id == $comment) ) { + if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->comment_ID == $comment) ) { $_comment = & $GLOBALS['comment']; } elseif ( !isset($comment_cache[$comment]) ) { $_comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment' LIMIT 1");