Remove add to cart variable from links

Closes #8554
This commit is contained in:
Mike Jolley 2015-07-10 11:17:21 +01:00
parent 8bf4469178
commit 1cd2e558ed
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class WC_Widget_Layered_Nav_Filters extends WC_Widget {
$new_filter = array_map( 'absint', explode( ',', $current_filter ) );
$new_filter = array_diff( $new_filter, array( $term_id ) );
$link = remove_query_arg( 'filter_' . $taxonomy_filter );
$link = remove_query_arg( array( 'add-to-cart', 'filter_' . $taxonomy_filter ) );
if ( sizeof( $new_filter ) > 0 ) {
$link = add_query_arg( 'filter_' . $taxonomy_filter, implode( ',', $new_filter ), $link );