@@ -160,14 +160,10 @@ public static function maybe_migrate() {
160
160
add_action ( 'init ' , 'flush_rewrite_rules ' , 20 );
161
161
}
162
162
if ( \version_compare ( $ version_from_db , '5.0.0 ' , '< ' ) ) {
163
- Scheduler::register_schedules ();
164
163
\wp_schedule_single_event ( \time (), 'activitypub_upgrade ' , array ( 'create_post_outbox_items ' ) );
165
164
\wp_schedule_single_event ( \time () + 15 , 'activitypub_upgrade ' , array ( 'create_comment_outbox_items ' ) );
166
165
add_action ( 'init ' , 'flush_rewrite_rules ' , 20 );
167
166
}
168
- if ( \version_compare ( $ version_from_db , '5.2.0 ' , '< ' ) ) {
169
- Scheduler::register_schedules ();
170
- }
171
167
if ( \version_compare ( $ version_from_db , '5.4.0 ' , '< ' ) ) {
172
168
\wp_schedule_single_event ( \time (), 'activitypub_upgrade ' , array ( 'update_actor_json_slashing ' ) );
173
169
\wp_schedule_single_event ( \time (), 'activitypub_upgrade ' , array ( 'update_comment_author_emails ' ) );
@@ -203,6 +199,9 @@ public static function maybe_migrate() {
203
199
}
204
200
}
205
201
202
+ // Ensure all required cron schedules are registered.
203
+ Scheduler::register_schedules ();
204
+
206
205
/*
207
206
* Add new update routines above this comment. ^
208
207
*
0 commit comments