From 62accc75a94775aaa0544716e9e314b13a433b6f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 25 Feb 2009 01:13:32 +0000 Subject: [PATCH] wp_list_authors fixes. Props hailin. fixes #9229 git-svn-id: https://develop.svn.wordpress.org/trunk@10644 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 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 . ', '; }