wp_list_authors fixes. Props hailin. fixes #9229
git-svn-id: http://svn.automattic.com/wordpress/trunk@10644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
75d701ec40
commit
4eb0ba92e3
|
@ -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 . ', ';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue