Skip to content

Commit

Permalink
dont break the other sorting options in admin list
Browse files Browse the repository at this point in the history
  • Loading branch information
kermage committed Jan 14, 2020
1 parent c5bc8e1 commit dc6b187
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-at-sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ public function set_posts_order( WP_Query $query ) {

public function set_terms_order( $clauses ) {

if ( is_admin() && isset( $_GET['orderby'] ) ) {
return $clauses;
}

$clauses['orderby'] = 'ORDER BY t.term_order';

return $clauses;
Expand Down

0 comments on commit dc6b187

Please sign in to comment.