This commit is contained in:
Mike Jolley 2013-04-24 13:42:40 +01:00
parent 16f706e086
commit 035050c4c0
1 changed files with 4 additions and 3 deletions

View File

@ -1413,9 +1413,10 @@ function woocommerce_layered_nav_init( ) {
$_chosen_attributes[ $taxonomy ]['terms'] = explode( ',', $_GET[ $name ] );
if ( empty( $_GET[ $query_type_name ] ) || ! in_array( strtolower( $_GET[ $query_type_name ] ), array( 'and', 'or' ) ) )
$_chosen_attributes[ $taxonomy ]['query_type'] = apply_filters( 'woocommerce_layered_nav_default_type', 'and' );
else
$_chosen_attributes[ $taxonomy ]['query_type'] = $_GET[ $query_type_name ];
$_chosen_attributes[ $taxonomy ]['query_type'] = apply_filters( 'woocommerce_layered_nav_default_query_type', 'and' );
else
$_chosen_attributes[ $taxonomy ]['query_type'] = strtolower( $_GET[ $query_type_name ] );
}
}
}