Opened 5 months ago
Last modified 5 months ago
#61450 new defect (bug)
The `recovery_mode_clean_expired_keys` cron event is orphaned after converting to Multisite
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | low |
Severity: | minor | Version: | 5.2 |
Component: | Cron API | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
To reproduce:
- Create a single site installation
- Convert it to a Multisite installation, for example via
wp core multisite-convert
or via the Tools -> Network Setup menu - Observe that the
recovery_mode_clean_expired_keys
cron event is still scheduled to run daily but that it does not have a registered callback and is therefore useless
To view the callbacks for a cron event hook you can use the WP Crontrol plugin or run some code such as has_action('recovery_mode_clean_expired_keys')
.
This cron event is orphaned because recovery mode is not operational on a Multisite installation, therefore the WP_Recovery_Mode
class isn't instantiated.
Ideally the recovery_mode_clean_expired_keys
cron event would be deleted upon installation of Multisite.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/61450