Make WordPress Core


Ignore:
Timestamp:
08/25/2015 04:31:52 AM (10 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/upgrade.php

    r33693 r33727  
    15911591    $cron_array = _get_cron_array();
    15921592    if ( isset( $cron_array['wp_batch_split_terms'] ) ) {
    1593         foreach ( $cron_array['wp_batch_split_terms'] as $timestamp_hook => $cron_data ) {
    1594             foreach ( $cron_data as $key => $args ) {
    1595                 wp_unschedule_event( 'wp_batch_split_terms', $timestamp_hook, $args['args'] );
    1596             }
    1597         }
     1593        unset( $cron_array['wp_batch_split_terms'] );
     1594        _set_cron_array( $cron_array );
    15981595    }
    15991596}
Note: See TracChangeset for help on using the changeset viewer.