Merge pull request #10216 from reigelgallarde/master

using query_vars instead of query
This commit is contained in:
Mike Jolley 2016-02-01 12:17:00 +00:00
commit a4d982b1b9
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ function wc_product_dropdown_categories( $args = array(), $deprecated_hierarchic
$args['orderby'] = $deprecated_orderby;
}
$current_product_cat = isset( $wp_query->query['product_cat'] ) ? $wp_query->query['product_cat'] : '';
$current_product_cat = isset( $wp_query->query_vars['product_cat'] ) ? $wp_query->query_vars['product_cat'] : '';
$defaults = array(
'pad_counts' => 1,
'show_count' => 1,