Pass term object to get_term_link()
This commit is contained in:
parent
2a4a1bc9a8
commit
1cb50b9b53
|
@ -558,7 +558,7 @@ function woocommerce_template_loop_product_link_close() {
|
||||||
* Insert the opening anchor tag for categories in the loop.
|
* Insert the opening anchor tag for categories in the loop.
|
||||||
*/
|
*/
|
||||||
function woocommerce_template_loop_category_link_open( $category ) {
|
function woocommerce_template_loop_category_link_open( $category ) {
|
||||||
echo '<a href="' . get_term_link( $category->slug, 'product_cat' ) . '">';
|
echo '<a href="' . get_term_link( $category, 'product_cat' ) . '">';
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Insert the opening anchor tag for categories in the loop.
|
* Insert the opening anchor tag for categories in the loop.
|
||||||
|
|
Loading…
Reference in New Issue