diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index b5ffff463e..34b9efe08c 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -488,6 +488,9 @@ function wp_list_authors($args = '') { } foreach ( (array) $authors as $author ) { + + $link = ''; + $author = get_userdata( $author->ID ); $posts = (isset($author_count[$author->ID])) ? $author_count[$author->ID] : 0; $name = $author->display_name; @@ -547,7 +550,7 @@ function wp_list_authors($args = '') { if ( !($posts == 0 && $hide_empty) && 'list' == $style ) $return .= $link . ''; - else + else if ( ! $hide_empty ) $return .= $link . ', '; }