mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@49909 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user