Fixed Coding Standards
This commit is contained in:
parent
c2bd9bcdf5
commit
d1df273f9e
|
@ -76,9 +76,9 @@ class WC_Widget_Layered_Nav_Filters extends WC_Widget {
|
|||
$link = add_query_arg( $filter_name, implode( ',', $new_filter ), $link );
|
||||
}
|
||||
|
||||
$filter_classes = ['chosen', 'chosen-'.sanitize_html_class( str_replace( 'pa_', '', $taxonomy ) ), 'chosen-'.sanitize_html_class( str_replace( 'pa_', '', $taxonomy ) . '-' . $term_slug )];
|
||||
$filter_classes = array( 'chosen', 'chosen-' . sanitize_html_class( str_replace( 'pa_', '', $taxonomy ) ), 'chosen-' . sanitize_html_class( str_replace( 'pa_', '', $taxonomy ) . '-' . $term_slug ) );
|
||||
|
||||
echo '<li class="' . implode(" ", $filter_classes) . '"><a rel="nofollow" aria-label="' . esc_attr__( 'Remove filter', 'woocommerce' ) . '" href="' . esc_url( $link ) . '">' . esc_html( $term->name ) . '</a></li>';
|
||||
echo '<li class="' . esc_attr( implode( " ", $filter_classes ) ) . '"><a rel="nofollow" aria-label="' . esc_attr__( 'Remove filter', 'woocommerce' ) . '" href="' . esc_url( $link ) . '">' . esc_html( $term->name ) . '</a></li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue