From c602ff86c39b6b5c3c08f67df0f130dae7da9ab1 Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 4 Apr 2010 07:41:07 +0000 Subject: [PATCH] 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 --- wp-includes/author-template.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 96e2298af..9d6bedc1c 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -345,10 +345,8 @@ function wp_list_authors($args = '') { } - if ( !($posts == 0 && $hide_empty) && 'list' == $style ) - $return .= $link . ''; - else if ( ! $hide_empty ) - $return .= $link . ', '; + if ( $posts || ! $hide_empty ) + $return .= $link . ( ( 'list' == $style ) ? '' : ', ' ); } $return = trim($return, ', ');