From 0cafd1a4991a125443408b1909ad4fbde738ffd7 Mon Sep 17 00:00:00 2001 From: Konstantin Kovshenin Date: Mon, 28 Aug 2017 10:31:08 +0300 Subject: [PATCH] Helper: Refresh update transients when refreshing update data. --- includes/admin/helper/class-wc-helper-updater.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/admin/helper/class-wc-helper-updater.php b/includes/admin/helper/class-wc-helper-updater.php index ff52dcf3a5c..297ae24fb5b 100644 --- a/includes/admin/helper/class-wc-helper-updater.php +++ b/includes/admin/helper/class-wc-helper-updater.php @@ -289,6 +289,10 @@ class WC_Helper_Updater { public static function flush_updates_cache() { delete_transient( '_woocommerce_helper_updates' ); delete_transient( '_woocommerce_helper_updates_count' ); + + // Refresh update transients + set_site_transient( 'update_plugins', get_site_transient( 'update_plugins' ) ); + set_site_transient( 'update_themes', get_site_transient( 'update_themes' ) ); } /**