Changeset 47122 for trunk/src/wp-includes/class-wp-user-query.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-user-query.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user-query.php
r46156 r47122 59 59 private $compat_fields = array( 'results', 'total_users' ); 60 60 61 // SQL clauses 61 // SQL clauses. 62 62 public $query_fields; 63 63 public $query_from; … … 440 440 } 441 441 442 // sorting442 // Sorting. 443 443 $qv['order'] = isset( $qv['order'] ) ? strtoupper( $qv['order'] ) : ''; 444 444 $order = $this->parse_order( $qv['order'] ); … … 490 490 $this->query_orderby = 'ORDER BY ' . implode( ', ', $orderby_array ); 491 491 492 // limit492 // Limit. 493 493 if ( isset( $qv['number'] ) && $qv['number'] > 0 ) { 494 494 if ( $qv['offset'] ) { … … 764 764 $_orderby = 'display_name'; 765 765 } elseif ( 'post_count' == $orderby ) { 766 // todo: avoid the JOIN766 // @todo Avoid the JOIN. 767 767 $where = get_posts_by_author_sql( 'post' ); 768 768 $this->query_from .= " LEFT OUTER JOIN (
Note: See TracChangeset
for help on using the changeset viewer.