Correct logic in wp_list_authors() for combinations of hide_empty and style args. fixes #10042

git-svn-id: https://develop.svn.wordpress.org/trunk@13989 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-04-04 07:41:07 +00:00
parent f81c0fdc39
commit ec25a03906
1 changed files with 2 additions and 4 deletions

View File

@ -345,10 +345,8 @@ function wp_list_authors($args = '') {
}
if ( !($posts == 0 && $hide_empty) && 'list' == $style )
$return .= $link . '</li>';
else if ( ! $hide_empty )
$return .= $link . ', ';
if ( $posts || ! $hide_empty )
$return .= $link . ( ( 'list' == $style ) ? '</li>' : ', ' );
}
$return = trim($return, ', ');