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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-04-04 07:41:07 +00:00
parent 5f134c587e
commit c602ff86c3

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, ', ');