WordPress.org

Make WordPress Core

Changeset 10595


Ignore:
Timestamp:
02/19/09 18:42:18 (5 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.