diff options
Diffstat (limited to 'wp-includes/author-template.php')
-rw-r--r-- | wp-includes/author-template.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index adee80c..bcc9290 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -457,6 +457,7 @@ function wp_list_authors($args = '') { $authors = array(); } + $author_count = array(); foreach ((array) $wpdb->get_results("SELECT DISTINCT post_author, COUNT(ID) AS count FROM $wpdb->posts WHERE post_type = 'post' AND " . get_private_posts_cap_sql( 'post' ) . " GROUP BY post_author") as $row) { $author_count[$row->post_author] = $row->count; } |