Changeset 5087 for trunk/wp-includes/user.php
- Timestamp:
- 03/23/2007 12:59:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r5037 r5087 57 57 global $wpdb, $blog_id; 58 58 if ( empty($id) ) 59 $id = $blog_id;59 $id = (int) $blog_id; 60 60 $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" ); 61 61 return $users; … … 172 172 $userdata = $user->data; 173 173 $user_login = $user->user_login; 174 $user_level = $user->user_level;175 $user_ID = $user->ID;174 $user_level = (int) $user->user_level; 175 $user_ID = (int) $user->ID; 176 176 $user_email = $user->user_email; 177 177 $user_url = $user->user_url;
Note: See TracChangeset
for help on using the changeset viewer.