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:
John Blackbourn
2025-02-10 15:01:23 +00:00
parent caaf76b11e
commit cf4686e4b6
2 changed files with 6 additions and 1 deletions

View File

@@ -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()

View File

@@ -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.