From a2861f1277166b742f2e95a3f496a39f47a28936 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 14 Mar 2020 16:34:54 +0000 Subject: [PATCH] Site Health: Run the first scheduled site health check a day after the initial site setup. This reduces the chance of displaying incorrect results due to running the check too early in first time setup scenarios. Props Clorith, garrett-eclipse, roytanck, joostdevalk. Fixes #49577. git-svn-id: https://develop.svn.wordpress.org/trunk@47456 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-site-health.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index ef607c581a..4b63b3ba17 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -2218,7 +2218,7 @@ class WP_Site_Health { */ public function maybe_create_scheduled_event() { if ( ! wp_next_scheduled( 'wp_site_health_scheduled_check' ) && ! wp_installing() ) { - wp_schedule_event( time(), 'weekly', 'wp_site_health_scheduled_check' ); + wp_schedule_event( time() + DAY_IN_SECONDS, 'weekly', 'wp_site_health_scheduled_check' ); } }