Make WordPress Core

Changeset 49909


Ignore:
Timestamp:
12/28/2020 01:43:18 AM (4 years ago)
Author:
pento
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/https-detection.php

    r49904 r49909  
    120120 */
    121121function wp_schedule_https_detection() {
     122    if ( wp_installing() ) {
     123        return;
     124    }
     125
    122126    if ( ! wp_next_scheduled( 'wp_https_detection' ) ) {
    123127        wp_schedule_event( time(), 'twicedaily', 'wp_https_detection' );
Note: See TracChangeset for help on using the changeset viewer.