Use display_name instead. Props Pal Gronas Drange. fixes #4459
git-svn-id: https://develop.svn.wordpress.org/trunk@5701 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b046d67f41
commit
eb1518f95e
|
@ -385,7 +385,7 @@ function wp_list_authors($args = '') {
|
|||
foreach ( (array) $authors as $author ) {
|
||||
$author = get_userdata( $author->ID );
|
||||
$posts = (isset($author_count[$author->ID])) ? $author_count[$author->ID] : 0;
|
||||
$name = $author->nickname;
|
||||
$name = $author->display_name;
|
||||
|
||||
if ( $show_fullname && ($author->first_name != '' && $author->last_name != '') )
|
||||
$name = "$author->first_name $author->last_name";
|
||||
|
|
Loading…
Reference in New Issue