Skip to content

Commit 9b17242

Browse files
committed
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 git-svn-id: https://develop.svn.wordpress.org/trunk@59798 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b93ecb8 commit 9b17242

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wp-admin/includes/schema.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,11 @@ function populate_network( $network_id = 1, $domain = '', $email = '', $site_nam
10471047
)
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
10521057
* become the main site of the network. When using populate_network()

0 commit comments

Comments
 (0)