Set attribute 'query_var' true when public.

Closes #7401
This commit is contained in:
Mike Jolley 2015-02-13 14:06:17 +00:00
parent 0c6e079690
commit 6679f4822f
2 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class WC_Post_types {
'new_item_name' => sprintf( __( 'New %s', 'woocommerce' ), $label )
),
'show_ui' => false,
'query_var' => false,
'query_var' => 1 === $tax->attribute_public,
'rewrite' => false,
'sort' => false,
'public' => 1 === $tax->attribute_public,

View File

@ -142,6 +142,8 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Run coupon codes through html_entity_decode.
* Fix - Tax by code report for refunds.
* Fix - Auto-generation of slug when adding new attribute.
* Tweak - Simplify default mode should be 'standard'.
* Tweak - Set attribte 'query_var' true when public.
* Tweak - Improvements to refund handling in Taxes by code/date, and sales by date reports. Gross/net excludes refunds.
= 2.3.3 - 12/02/2015 =