Ticket #9165: author-template.php.patch
File author-template.php.patch, 785 bytes (added by , 16 years ago) |
---|
-
wp-includes/author-template.php
old new 472 472 $return = ''; 473 473 474 474 /** @todo Move select to get_authors(). */ 475 $authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_login <> 'admin'" : '') . "ORDER BY display_name");475 $authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE ID <> 1 " : '') . "ORDER BY display_name"); 476 476 477 477 $author_count = array(); 478 478 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) {