Changeset 17013 for trunk/wp-includes/user.php
- Timestamp:
- 12/17/2010 12:38:15 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/user.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)