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 )
|
if ( $posts || ! $hide_empty )
|
||||||
$return .= $link . '</li>';
|
$return .= $link . ( ( 'list' == $style ) ? '</li>' : ', ' );
|
||||||
else if ( ! $hide_empty )
|
|
||||||
$return .= $link . ', ';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$return = trim($return, ', ');
|
$return = trim($return, ', ');
|
||||||
|
|
Loading…
Reference in New Issue