Coding style fix. Add $taxonomy to the filter args.
This commit is contained in:
parent
c7d191f84b
commit
0d8e993cc3
|
@ -219,8 +219,8 @@ class WC_Widget_Layered_Nav extends WC_Widget {
|
|||
$term_counts = $this->get_filtered_term_product_counts( wp_list_pluck( $terms, 'term_id' ), $taxonomy, $query_type );
|
||||
$_chosen_attributes = WC_Query::get_layered_nav_chosen_attributes();
|
||||
$taxonomy_filter_name = str_replace( 'pa_', '', $taxonomy );
|
||||
$taxonomy_label = wc_attribute_label( $taxonomy );
|
||||
$any_label = apply_filters( 'woocommerce_layered_nav_any_label', sprintf( __( 'Any %s', 'woocommerce' ), $taxonomy_label ), $taxonomy_label );
|
||||
$taxonomy_label = wc_attribute_label( $taxonomy );
|
||||
$any_label = apply_filters( 'woocommerce_layered_nav_any_label', sprintf( __( 'Any %s', 'woocommerce' ), $taxonomy_label ), $taxonomy_label, $taxonomy );
|
||||
|
||||
echo '<select class="dropdown_layered_nav_' . esc_attr( $taxonomy_filter_name ) . '">';
|
||||
echo '<option value="">' . esc_html( $any_label ) . '</option>';
|
||||
|
|
Loading…
Reference in New Issue