Changeset 34956 for trunk/src/wp-includes/class-wp-user-query.php
- Timestamp:
- 10/08/2015 09:05:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user-query.php
r34880 r34956 52 52 */ 53 53 public $meta_query = false; 54 55 /** 56 * The SQL query used to fetch matching users. 57 * 58 * @since 4.4.0 59 * @access public 60 * @var string 61 */ 62 public $request; 54 63 55 64 private $compat_fields = array( 'results', 'total_users' ); … … 443 452 $qv =& $this->query_vars; 444 453 445 $ query= "SELECT $this->query_fields $this->query_from $this->query_where $this->query_orderby $this->query_limit";454 $this->request = "SELECT $this->query_fields $this->query_from $this->query_where $this->query_orderby $this->query_limit"; 446 455 447 456 if ( is_array( $qv['fields'] ) || 'all' == $qv['fields'] ) { 448 $this->results = $wpdb->get_results( $ query);457 $this->results = $wpdb->get_results( $this->request ); 449 458 } else { 450 $this->results = $wpdb->get_col( $ query);459 $this->results = $wpdb->get_col( $this->request ); 451 460 } 452 461
Note: See TracChangeset
for help on using the changeset viewer.