Fixed Coding Standards

This commit is contained in:
Francesco Pinto 2019-03-23 20:28:58 +01:00 committed by GitHub
parent c2bd9bcdf5
commit d1df273f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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>';
}
}
}