Merge pull request #12789 from aelia-co/layerednav-improved-navlink-filter

Improved filter `woocommerce_layered_nav_link`
This commit is contained in:
Claudio Sanches 2017-01-09 18:10:05 -02:00 committed by GitHub
commit 1675aa51fb
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class WC_Widget_Layered_Nav extends WC_Widget {
}
if ( $count > 0 || $option_is_set ) {
$link = esc_url( apply_filters( 'woocommerce_layered_nav_link', $link ) );
$link = esc_url( apply_filters( 'woocommerce_layered_nav_link', $link, $term, $taxonomy ) );
$term_html = '<a href="' . $link . '">' . esc_html( $term->name ) . '</a>';
} else {
$link = false;