Recount true when recounting terms Fixes #5320

This commit is contained in:
Mike Jolley 2014-04-24 16:09:03 +01:00
parent 45f9954c10
commit be360e3e02
1 changed files with 2 additions and 2 deletions

View File

@ -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' );