Changeset 17013
- Timestamp:
- 12/17/2010 12:38:15 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-users-list-table.php
r16992 r17013 28 28 'offset' => ( $paged-1 ) * $users_per_page, 29 29 'search' => $usersearch, 30 'blog_id' => 0 30 'blog_id' => 0, 31 'fields' => 'all_with_meta' 31 32 ); 32 33 -
trunk/wp-admin/includes/class-wp-users-list-table.php
r16992 r17013 48 48 'offset' => ( $paged-1 ) * $users_per_page, 49 49 'role' => $role, 50 'search' => $usersearch 50 'search' => $usersearch, 51 'fields' => 'all_with_meta' 51 52 ); 52 53 -
trunk/wp-includes/user.php
r16995 r17013 415 415 $this->query_fields[] = $wpdb->users . '.' . esc_sql( $field ); 416 416 $this->query_fields = implode( ',', $this->query_fields ); 417 } elseif ( 'all' == $qv['fields'] ) { 418 $this->query_fields = "$wpdb->users.*"; 417 419 } else { 418 420 $this->query_fields = "$wpdb->users.ID"; … … 523 525 global $wpdb; 524 526 525 if ( is_array( $this->query_vars['fields'] ) ) {527 if ( is_array( $this->query_vars['fields'] ) || 'all' == $this->query_vars['fields'] ) { 526 528 $this->results = $wpdb->get_results("SELECT $this->query_fields $this->query_from $this->query_where $this->query_orderby $this->query_limit"); 527 529 } else { … … 535 537 $this->total_users = $wpdb->get_var("SELECT COUNT($wpdb->users.ID) $this->query_from $this->query_where $this->query_orderby $this->query_limit"); 536 538 537 if ( 'all ' == $this->query_vars['fields'] ) {538 cache_users( $this->results);539 if ( 'all_with_meta' == $this->query_vars['fields'] ) { 540 cache_users( $this->results ); 539 541 540 542 $r = array();
Note: See TracChangeset
for help on using the changeset viewer.