Changeset 24719
- Timestamp:
- 07/17/2013 04:46:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r24714 r24719 393 393 394 394 $this->query_fields = array(); 395 foreach ( $qv['fields'] as $field ) 396 $this->query_fields[] = $wpdb->users . '.' . sanitize_key( $field ); 395 foreach ( $qv['fields'] as $field ) { 396 $field = 'ID' === $field ? 'ID' : sanitize_key( $field ); 397 $this->query_fields[] = "$wpdb->users.$field"; 398 } 397 399 $this->query_fields = implode( ',', $this->query_fields ); 398 400 } elseif ( 'all' == $qv['fields'] ) { … … 1030 1032 1031 1033 $query_args = wp_array_slice_assoc( $r, array( 'blog_id', 'include', 'exclude', 'orderby', 'order', 'who' ) ); 1032 $query_args['fields'] = array( 'ID', $show );1034 $query_args['fields'] = array( 'ID', 'user_login', $show ); 1033 1035 $users = get_users( $query_args ); 1034 1036
Note: See TracChangeset
for help on using the changeset viewer.