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 Built from https://develop.svn.wordpress.org/trunk@59798 git-svn-id: http://core.svn.wordpress.org/trunk@59140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1047,6 +1047,11 @@ function populate_network( $network_id = 1, $domain = '', $email = '', $site_nam
|
||||
)
|
||||
);
|
||||
|
||||
// Remove the cron event since Recovery Mode is not used in Multisite.
|
||||
if ( wp_next_scheduled( 'recovery_mode_clean_expired_keys' ) ) {
|
||||
wp_clear_scheduled_hook( 'recovery_mode_clean_expired_keys' );
|
||||
}
|
||||
|
||||
/*
|
||||
* When upgrading from single to multisite, assume the current site will
|
||||
* become the main site of the network. When using populate_network()
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59797';
|
||||
$wp_version = '6.8-alpha-59798';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user