Make WordPress Core

Ticket #9165: author-template.php.patch

File author-template.php.patch, 785 bytes (added by flocsy, 16 years ago)

Patch for wp-includes/author-template.php

  • wp-includes/author-template.php

    old new  
    472472        $return = '';
    473473
    474474        /** @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");
    476476
    477477        $author_count = array();
    478478        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) {