From 4dc59b954a19bb90182339fb40cb7f88bacd5990 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 28 Dec 2020 01:45:06 +0000 Subject: [PATCH] Site Health: Check that WordPress is installed before scheduling the HTTPS cron. Trying to schedule cron jobs before WordPress is installed results in DB errors, which is suboptimal. See #47577. Built from https://develop.svn.wordpress.org/trunk@49909 git-svn-id: http://core.svn.wordpress.org/trunk@49608 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/https-detection.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/https-detection.php b/wp-includes/https-detection.php index 895b3a8516..87c331bf24 100644 --- a/wp-includes/https-detection.php +++ b/wp-includes/https-detection.php @@ -119,6 +119,10 @@ function wp_update_https_detection_errors() { * @access private */ function wp_schedule_https_detection() { + if ( wp_installing() ) { + return; + } + if ( ! wp_next_scheduled( 'wp_https_detection' ) ) { wp_schedule_event( time(), 'twicedaily', 'wp_https_detection' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index b061079c8b..ad97c69de5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-49908'; +$wp_version = '5.7-alpha-49909'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.