Changeset 38099 for trunk/src/wp-includes/class-wp-term-query.php
- Timestamp:
- 07/19/2016 02:12:48 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-term-query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r38020 r38099 385 385 386 386 $orderby = $this->parse_orderby( $this->query_vars['orderby'] ); 387 if ( $orderby ) { 388 $orderby = "ORDER BY $orderby"; 389 } 390 387 391 $order = $this->parse_order( $this->query_vars['order'] ); 388 392 … … 619 623 $this->sql_clauses['select'] = "SELECT $distinct $fields"; 620 624 $this->sql_clauses['from'] = "FROM $wpdb->terms AS t $join"; 621 $this->sql_clauses['orderby'] = $orderby ? " ORDER BY$orderby $order" : '';625 $this->sql_clauses['orderby'] = $orderby ? "$orderby $order" : ''; 622 626 $this->sql_clauses['limits'] = $limits; 623 627
Note: See TracChangeset
for help on using the changeset viewer.