From be360e3e02974b01d4f467adc524ab013a6dbf09 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 24 Apr 2014 16:09:03 +0100 Subject: [PATCH] Recount true when recounting terms Fixes #5320 --- includes/admin/class-wc-admin-status.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/class-wc-admin-status.php b/includes/admin/class-wc-admin-status.php index b2eb786318d..180ea0904a4 100644 --- a/includes/admin/class-wc-admin-status.php +++ b/includes/admin/class-wc-admin-status.php @@ -105,11 +105,11 @@ class WC_Admin_Status { $product_cats = get_terms( 'product_cat', array( 'hide_empty' => false, 'fields' => 'id=>parent' ) ); - _wc_term_recount( $product_cats, get_taxonomy( 'product_cat' ), false, false ); + _wc_term_recount( $product_cats, get_taxonomy( 'product_cat' ), true, false ); $product_tags = get_terms( 'product_tag', array( 'hide_empty' => false, 'fields' => 'id=>parent' ) ); - _wc_term_recount( $product_tags, get_taxonomy( 'product_tag' ), false, false ); + _wc_term_recount( $product_tags, get_taxonomy( 'product_tag' ), true, false ); delete_transient( 'wc_term_counts' );