From e56e5dfc50753360d465842c82e62c7ecaf01bd4 Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Wed, 15 Jan 2020 10:25:51 -0800 Subject: [PATCH] Pushed the first woocommerce_geoip_updater execution to fifteen days in the future This will prevent the routine from deleting the pre-update archive that we just moved in the previous update routine. --- includes/wc-update-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/wc-update-functions.php b/includes/wc-update-functions.php index f50f9e80c01..cbb9218017e 100644 --- a/includes/wc-update-functions.php +++ b/includes/wc-update-functions.php @@ -2072,7 +2072,7 @@ function wc_update_390_move_maxmind_database() { */ function wc_update_390_change_geolocation_database_update_cron() { wp_clear_scheduled_hook( 'woocommerce_geoip_updater' ); - wp_schedule_event( time() + MINUTE_IN_SECONDS, 'fifteendays', 'woocommerce_geoip_updater' ); + wp_schedule_event( time() + ( DAY_IN_SECONDS * 15 ), 'fifteendays', 'woocommerce_geoip_updater' ); } /**