[2.5] Pass $category to wc_product_cat_class() in content-product_cat.php

This commit is contained in:
Claudio Sanches 2016-02-01 13:36:52 -02:00
parent fd74d992ab
commit 12cd0d824a
1 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@
* @see http://docs.woothemes.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.5.0
* @version 2.5.2
*/
if ( ! defined( 'ABSPATH' ) ) {
@ -21,20 +21,20 @@ if ( ! defined( 'ABSPATH' ) ) {
global $woocommerce_loop;
// Store loop count we're currently on
// Store loop count we're currently on.
if ( empty( $woocommerce_loop['loop'] ) ) {
$woocommerce_loop['loop'] = 0;
}
// Store column count for displaying the grid
// Store column count for displaying the grid.
if ( empty( $woocommerce_loop['columns'] ) ) {
$woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 );
}
// Increase loop count
// Increase loop count.
$woocommerce_loop['loop']++;
?>
<li <?php wc_product_cat_class(); ?>>
<li <?php wc_product_cat_class( '', $category ); ?>>
<?php
/**
* woocommerce_before_subcategory hook.