Merge pull request #8474 from roykho/patch

remove hardcoded tree type
This commit is contained in:
Mike Jolley 2015-06-28 11:22:24 +02:00
commit 4c08da9a9d
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class WC_Product_Cat_List_Walker extends Walker {
$output .= ' current-cat-parent';
}
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, 'product_cat' ) . '">' . __( $cat->name, 'woocommerce' ) . '</a>';
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, $this->tree_type ) . '">' . __( $cat->name, 'woocommerce' ) . '</a>';
if ( $args['show_count'] ) {
$output .= ' <span class="count">(' . $cat->count . ')</span>';