wp_list_authors fixes. Props hailin. fixes #9229

git-svn-id: https://develop.svn.wordpress.org/trunk@10644 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-02-25 01:13:32 +00:00
parent aaf6c3ab2e
commit 62accc75a9
1 changed files with 4 additions and 1 deletions

View File

@ -488,6 +488,9 @@ function wp_list_authors($args = '') {
}
foreach ( (array) $authors as $author ) {
$link = '';
$author = get_userdata( $author->ID );
$posts = (isset($author_count[$author->ID])) ? $author_count[$author->ID] : 0;
$name = $author->display_name;
@ -547,7 +550,7 @@ function wp_list_authors($args = '') {
if ( !($posts == 0 && $hide_empty) && 'list' == $style )
$return .= $link . '</li>';
else
else if ( ! $hide_empty )
$return .= $link . ', ';
}