diff --git a/src/wp-includes/author-template.php b/src/wp-includes/author-template.php
index 43945cde8a..cef8cc9453 100644
a
|
b
|
function wp_list_authors( $args = '' ) { |
440 | 440 | $author_count[ $row->post_author ] = $row->count; |
441 | 441 | } |
442 | 442 | foreach ( $authors as $author_id ) { |
443 | | $author = get_userdata( $author_id ); |
| 443 | $posts = isset( $author_count[ $author->ID ] ) ? $author_count[ $author->ID ] : 0; |
444 | 444 | |
445 | | if ( $args['exclude_admin'] && 'admin' == $author->display_name ) { |
| 445 | if ( ! $posts && $args['hide_empty'] ) { |
446 | 446 | continue; |
447 | 447 | } |
448 | 448 | |
449 | | $posts = isset( $author_count[ $author->ID ] ) ? $author_count[ $author->ID ] : 0; |
| 449 | $author = get_userdata( $author_id ); |
450 | 450 | |
451 | | if ( ! $posts && $args['hide_empty'] ) { |
| 451 | if ( $args['exclude_admin'] && 'admin' == $author->display_name ) { |
452 | 452 | continue; |
453 | 453 | } |
454 | 454 | |