Fix ordering. Closes #1763.

This commit is contained in:
Mike Jolley 2012-11-15 15:32:58 +00:00
parent 554634dd01
commit 68418d3c2b
1 changed files with 1 additions and 1 deletions

View File

@ -1118,7 +1118,7 @@ function woocommerce_terms_clauses( $clauses, $taxonomies, $args ) {
if ( isset($args['orderby']) && $args['orderby'] != 'name' ) return $clauses; if ( isset($args['orderby']) && $args['orderby'] != 'name' ) return $clauses;
// No sorting in admin when sorting by a column // No sorting in admin when sorting by a column
if ( isset($_GET['orderby']) ) return $clauses; if ( is_admin() && isset($_GET['orderby']) ) return $clauses;
// wordpress should give us the taxonomies asked when calling the get_terms function. Only apply to categories and pa_ attributes // wordpress should give us the taxonomies asked when calling the get_terms function. Only apply to categories and pa_ attributes
$found = false; $found = false;