Fix query redirects

Fixes #7703
This commit is contained in:
Mike Jolley 2015-03-13 10:33:36 +00:00
parent 103b4cf31b
commit efb0b7f72f
2 changed files with 2 additions and 2 deletions

View File

@ -438,8 +438,7 @@ class WC_Query {
$q->set( 'posts_per_page', $q->get( 'posts_per_page' ) ? $q->get( 'posts_per_page' ) : apply_filters( 'loop_shop_per_page', get_option( 'posts_per_page' ) ) );
// Set a special variable
$q->set( 'wc_query', true );
$q->query['wc_query'] = 'product_query';
$q->set( 'wc_query', 'product_query' );
// Store variables
$this->post__in = $post__in;

View File

@ -146,6 +146,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Order again with custom attributes.
* Fix - Prevent potential XSS within tooltips.
* Fix - Paypal debug option.
* Fix - Removed $q->query['wc_query'] = 'product_query' which broke redirects (#7703). Use $q->get('wc_query') instead.
* Tweak - Show discounts inc. tax when showing order totals inc. tax.
* Tweak - Use 30 days instead of year for transients to avoid bugs in memcache plugins.
* Tweak - Add reports menu item if user can access reports but not the main WC section.