Clear cached API reports when deleting shop order transients

This commit is contained in:
Max Rice 2014-04-22 15:01:08 -04:00 committed by Mike Jolley
parent 17abdb223a
commit 7e2fa1bbd6
1 changed files with 3 additions and 0 deletions

View File

@ -351,6 +351,9 @@ function wc_delete_shop_order_transients( $post_id = 0 ) {
}
}
// clear API report transient
$transients_to_clear[] = 'wc_admin_report';
// Clear transients where we have names
foreach( $transients_to_clear as $transient ) {
delete_transient( $transient );