mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@1969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
766178708e
commit
b3bc745046
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user