mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
5f134c587e
commit
c602ff86c3
@ -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, ', ');
|
||||
|
Loading…
Reference in New Issue
Block a user