WordPress.org

Make WordPress Core

Ticket #1090: template-functions-author.php.diff

File template-functions-author.php.diff, 861 bytes (added by CanuckKev, 16 years ago)
  • template-functions-author.php

     
    156156function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
    157157    global $wpdb;
    158158
    159     $query = "SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_nickname <> 'admin' " : '') . "ORDER BY user_nickname";
     159    $query = "SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_login <> 'admin' " : '') . "ORDER BY user_nickname";
    160160    $authors = $wpdb->get_results($query);
    161161
    162162    foreach($authors as $author) {