Fix for default perms and price filter

This commit is contained in:
Mike Jolley 2012-01-13 11:28:23 +00:00
parent 05405b8eaf
commit 293dfbcfc5
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,8 @@ class WooCommerce_Widget_Price_Filter extends WP_Widget {
if (get_search_query()) $fields = '<input type="hidden" name="s" value="'.get_search_query().'" />'; if (get_search_query()) $fields = '<input type="hidden" name="s" value="'.get_search_query().'" />';
if (isset($_GET['post_type'])) $fields .= '<input type="hidden" name="post_type" value="'.esc_attr( $_GET['post_type'] ).'" />'; if (isset($_GET['post_type'])) $fields .= '<input type="hidden" name="post_type" value="'.esc_attr( $_GET['post_type'] ).'" />';
if (isset($_GET['product_cat'])) $fields .= '<input type="hidden" name="product_cat" value="'.esc_attr( $_GET['product_cat'] ).'" />';
if (isset($_GET['product_tag'])) $fields .= '<input type="hidden" name="product_tag" value="'.esc_attr( $_GET['product_tag'] ).'" />';
if ($_chosen_attributes) foreach ($_chosen_attributes as $attribute => $data) : if ($_chosen_attributes) foreach ($_chosen_attributes as $attribute => $data) :