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:
parent
7d0891ad85
commit
afc59ae5dd
|
@ -178,13 +178,7 @@ case 'delete':
|
||||||
$go_delete = true;
|
$go_delete = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// @todo Delete is always for !is_multisite(). Use API.
|
$all_logins = get_users();
|
||||||
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");
|
|
||||||
}
|
|
||||||
$user_dropdown = '<select name="reassign_user">';
|
$user_dropdown = '<select name="reassign_user">';
|
||||||
foreach ( (array) $all_logins as $login )
|
foreach ( (array) $all_logins as $login )
|
||||||
if ( $login->ID == $current_user->ID || !in_array($login->ID, $userids) )
|
if ( $login->ID == $current_user->ID || !in_array($login->ID, $userids) )
|
||||||
|
|
Loading…
Reference in New Issue