From 6d44a0cac3b010e4b15eb37b57219b7da88f6032 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 14 Mar 2005 01:09:49 +0000 Subject: [PATCH] Exclude admin from author list based on user_login instead of user_nickname since user_nickname can be changed. http://mosquito.wordpress.org/view.php?id=1090 Props: MC_incubus git-svn-id: https://develop.svn.wordpress.org/trunk@2444 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-author.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/template-functions-author.php b/wp-includes/template-functions-author.php index 67b4e31eab..e3f0d459be 100644 --- a/wp-includes/template-functions-author.php +++ b/wp-includes/template-functions-author.php @@ -156,7 +156,7 @@ function wp_list_authors($args = '') { function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') { global $wpdb; - $query = "SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_nickname <> 'admin' " : '') . "ORDER BY user_nickname"; + $query = "SELECT ID, user_nickname, user_firstname, user_lastname, user_nicename from $wpdb->users " . ($exclude_admin ? "WHERE user_login <> 'admin' " : '') . "ORDER BY user_nickname"; $authors = $wpdb->get_results($query); foreach($authors as $author) {