From 4eb0ba92e3db7046675daf03339d5680803b2ea6 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 25 Feb 2009 01:13:32 +0000 Subject: [PATCH] wp_list_authors fixes. Props hailin. fixes #9229 git-svn-id: http://svn.automattic.com/wordpress/trunk@10644 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/author-template.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index b5ffff463..34b9efe08 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 . ', '; }