Pass term object to get_term_link()

This commit is contained in:
Christian Schmidt 2016-02-06 02:00:28 +01:00
parent 2a4a1bc9a8
commit 1cb50b9b53
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ function woocommerce_template_loop_product_link_close() {
* Insert the opening anchor tag for categories in the loop.
*/
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.