[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

@ -9,10 +9,10 @@
* as little as possible, but it does happen. When this occurs the version of the template file will.
* be bumped and the readme will list any important changes.
*
* @see http://docs.woothemes.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.5.0
* @see http://docs.woothemes.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
* @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
$woocommerce_loop['loop'] ++;
// Increase loop count.
$woocommerce_loop['loop']++;
?>
<li <?php wc_product_cat_class(); ?>>
<li <?php wc_product_cat_class( '', $category ); ?>>
<?php
/**
* woocommerce_before_subcategory hook.