Make WordPress Core


Ignore:
Timestamp:
09/03/2015 03:30:26 AM (9 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.

Merges [33727] to the 4.3 branch
Props Otto42, dd32, peterwilsoncc
Fixes #33423 for trunk

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-includes/taxonomy.php

    r33647 r33877  
    44384438
    44394439/**
    4440  * In order to avoid the wp_batch_split_terms() job being accidentally removed,
     4440 * In order to avoid the _wp_batch_split_terms() job being accidentally removed,
    44414441 * check that it's still scheduled while we haven't finished splitting terms.
    44424442 *
     
    44454445 */
    44464446function _wp_check_for_scheduled_split_terms() {
    4447     if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_batch_split_terms' ) ) {
    4448         wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_batch_split_terms' );
     4447    if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_split_shared_term_batch' ) ) {
     4448        wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_split_shared_term_batch' );
    44494449    }
    44504450}
Note: See TracChangeset for help on using the changeset viewer.