mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
Use the right field name ya idjit.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d44752d2ca
commit
8aaa48e041
@ -84,7 +84,7 @@ function &get_comment(&$comment, $output = OBJECT) {
|
|||||||
$_comment = & $comment_cache[$comment->comment_ID];
|
$_comment = & $comment_cache[$comment->comment_ID];
|
||||||
} else {
|
} else {
|
||||||
$comment = (int) $comment;
|
$comment = (int) $comment;
|
||||||
if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->id == $comment) ) {
|
if ( isset($GLOBALS['comment']) && ($GLOBALS['comment']->comment_ID == $comment) ) {
|
||||||
$_comment = & $GLOBALS['comment'];
|
$_comment = & $GLOBALS['comment'];
|
||||||
} elseif ( !isset($comment_cache[$comment]) ) {
|
} elseif ( !isset($comment_cache[$comment]) ) {
|
||||||
$_comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment' LIMIT 1");
|
$_comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID = '$comment' LIMIT 1");
|
||||||
|
Loading…
Reference in New Issue
Block a user