From b3bc745046a6b15daba766871454e6b02656ef2b Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 17 Dec 2004 08:48:30 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=556 git-svn-id: http://svn.automattic.com/wordpress/trunk@1969 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index ad3a5f6d7..b5af45107 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); }