Make WordPress Core


Ignore:
Timestamp:
02/19/2009 06:42:18 PM (16 years ago)
Author:
ryan
Message:

Include ID in get_users_of_blog() results. Props jeremyclarke and filosofo. fixes #9020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r10463 r10595  
    279279    if ( empty($id) )
    280280        $id = (int) $blog_id;
    281     $users = $wpdb->get_results( "SELECT user_id, user_login, display_name, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE " . $wpdb->users . ".ID = " . $wpdb->usermeta . ".user_id AND meta_key = '" . $wpdb->prefix . "capabilities' ORDER BY {$wpdb->usermeta}.user_id" );
     281    $users = $wpdb->get_results( "SELECT user_id, user_id AS ID, user_login, display_name, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE {$wpdb->users}.ID = {$wpdb->usermeta}.user_id AND meta_key = '{$wpdb->prefix}capabilities' ORDER BY {$wpdb->usermeta}.user_id" );
    282282    return $users;
    283283}
Note: See TracChangeset for help on using the changeset viewer.