diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index ad3a5f6d76..b5af451073 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -139,10 +139,10 @@ function comment_ID() { function get_comment_author() { global $comment; - - if ( empty($author) ) + if ( empty($comment->comment_author) ) $author = 'Anonymous'; - + else + $author = $comment->comment_author; return apply_filters('get_comment_author', $author); }