Merge pull request #10286 from c960657/patch-1

Pass term object to get_term_link()
This commit is contained in:
Claudio Sanches 2016-02-07 18:38:19 -02:00
commit 9eb336da65
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.