From 68418d3c2b91e091a8ff540363aed1939e51f9dd Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 15 Nov 2012 15:32:58 +0000 Subject: [PATCH] Fix ordering. Closes #1763. --- woocommerce-core-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index 99a79d6df48..ba3f104e9b4 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -1118,7 +1118,7 @@ function woocommerce_terms_clauses( $clauses, $taxonomies, $args ) { if ( isset($args['orderby']) && $args['orderby'] != 'name' ) return $clauses; // 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 $found = false;