Make WordPress Core


Ignore:
Timestamp:
02/10/2025 02:59:02 PM (2 months ago)
Author:
johnbillion
Message:

Cron API: Clear the recovery_mode_clean_expired_keys cron event when converting a single site installation to Multisite.

This cron event is not used when Multisite is in use.

Props debarghyabanerjee, johnbillion, narenin

Fixes #61450

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/schema.php

    r58928 r59798  
    10481048    );
    10491049
     1050    // Remove the cron event since Recovery Mode is not used in Multisite.
     1051    if ( wp_next_scheduled( 'recovery_mode_clean_expired_keys' ) ) {
     1052        wp_clear_scheduled_hook( 'recovery_mode_clean_expired_keys' );
     1053    }
     1054
    10501055    /*
    10511056     * When upgrading from single to multisite, assume the current site will
Note: See TracChangeset for help on using the changeset viewer.