Merge pull request #17400 from woocommerce/fix/17377

Clear counts cache when updating product attributes
This commit is contained in:
Claudio Sanches 2017-10-26 20:59:09 -02:00 committed by GitHub
commit 2d08ea7d15
1 changed files with 1 additions and 0 deletions

View File

@ -696,6 +696,7 @@ class WC_Product_Data_Store_CPT extends WC_Data_Store_WP implements WC_Object_Da
}
}
update_post_meta( $product->get_id(), '_product_attributes', $meta_values );
delete_transient( 'wc_layered_nav_counts' );
}
}