From cf75b95197ca1349213b999c566a98d6d604d123 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 14 Mar 2020 16:36:07 +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. Built from https://develop.svn.wordpress.org/trunk@47456 git-svn-id: http://core.svn.wordpress.org/trunk@47243 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index ef607c581a..4b63b3ba17 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/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' ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 946ef974e1..ca4c706779 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47455'; +$wp_version = '5.5-alpha-47456'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.