mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Term Splitting: Switch to a faster cron unschedule process to benefit sites with thousands of affected jobs. Fix the cron hook name in the failsafe rescheduler.
Props Otto42, dd32, peterwilsoncc See #33423 git-svn-id: https://develop.svn.wordpress.org/trunk@33727 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1590,11 +1590,8 @@ function upgrade_431() {
|
||||
// Fix incorrect cron entries for term splitting
|
||||
$cron_array = _get_cron_array();
|
||||
if ( isset( $cron_array['wp_batch_split_terms'] ) ) {
|
||||
foreach ( $cron_array['wp_batch_split_terms'] as $timestamp_hook => $cron_data ) {
|
||||
foreach ( $cron_data as $key => $args ) {
|
||||
wp_unschedule_event( 'wp_batch_split_terms', $timestamp_hook, $args['args'] );
|
||||
}
|
||||
}
|
||||
unset( $cron_array['wp_batch_split_terms'] );
|
||||
_set_cron_array( $cron_array );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user