From 8c3d1420025dc075c2b2edf9df53368ba851806c Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 7 Oct 2014 11:01:22 +0100 Subject: [PATCH] define $transients_to_clear --- includes/wc-order-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/wc-order-functions.php b/includes/wc-order-functions.php index b9c1d91c55a..4fea64034e0 100644 --- a/includes/wc-order-functions.php +++ b/includes/wc-order-functions.php @@ -522,7 +522,8 @@ function wc_processing_order_count() { * @param int $post_id (default: 0) */ function wc_delete_shop_order_transients( $post_id = 0 ) { - $post_id = absint( $post_id ); + $post_id = absint( $post_id ); + $transients_to_clear = array(); // Clear report transients $reports = WC_Admin_Reports::get_reports();