Make WordPress Core

Ticket #33423: 33423.2.diff

File 33423.2.diff, 1.2 KB (added by peterwilsoncc, 9 years ago)
  • src/wp-admin/includes/upgrade.php

    diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php
    index ffdb52b..95381fa 100644
    a b function upgrade_431() { 
    15901590        // Fix incorrect cron entries for term splitting
    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}
    16001597
  • src/wp-includes/taxonomy.php

    diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
    index 76db653..5b598df 100644
    a b function _wp_batch_split_terms() { 
    44494449 */
    44504450function _wp_check_for_scheduled_split_terms() {
    44514451        if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_batch_split_terms' ) ) {
    4452                 wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_batch_split_terms' );
     4452                wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_split_shared_term_batch' );
    44534453        }
    44544454}
    44554455