Use get_users() in users.php. See #14572

git-svn-id: http://svn.automattic.com/wordpress/trunk@15575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-09-05 19:00:51 +00:00
parent 7d0891ad85
commit afc59ae5dd
1 changed files with 1 additions and 7 deletions

View File

@ -178,13 +178,7 @@ case 'delete':
$go_delete = true;
}
}
// @todo Delete is always for !is_multisite(). Use API.
if ( !is_multisite() ) {
$all_logins = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users ORDER BY user_login");
} else {
// WPMU only searches users of current blog
$all_logins = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users, $wpdb->usermeta WHERE $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '".$wpdb->prefix."capabilities' ORDER BY user_login");
}
$all_logins = get_users();
$user_dropdown = '<select name="reassign_user">';
foreach ( (array) $all_logins as $login )
if ( $login->ID == $current_user->ID || !in_array($login->ID, $userids) )