WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/05/2010 07:00:51 PM (9 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/users.php

    r15528 r15575  
    179179        }
    180180    }
    181     // @todo Delete is always for !is_multisite(). Use API.
    182     if ( !is_multisite() ) {
    183         $all_logins = $wpdb->get_results("SELECT ID, user_login FROM $wpdb->users ORDER BY user_login");
    184     } else {
    185         // WPMU only searches users of current blog
    186         $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");
    187     }
     181    $all_logins = get_users();
    188182    $user_dropdown = '<select name="reassign_user">';
    189183    foreach ( (array) $all_logins as $login )
Note: See TracChangeset for help on using the changeset viewer.