Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r33950 r33647  
    223223        'post_content' => $first_page,
    224224        'post_excerpt' => '',
    225         'comment_status' => 'closed',
    226225        'post_title' => __( 'Sample Page' ),
    227226        /* translators: Default page slug */
     
    15911590    $cron_array = _get_cron_array();
    15921591    if ( isset( $cron_array['wp_batch_split_terms'] ) ) {
    1593         unset( $cron_array['wp_batch_split_terms'] );
    1594         _set_cron_array( $cron_array );
     1592        foreach ( $cron_array['wp_batch_split_terms'] as $timestamp_hook => $cron_data ) {
     1593            foreach ( $cron_data as $key => $args ) {
     1594                wp_unschedule_event( 'wp_batch_split_terms', $timestamp_hook, $args['args'] );
     1595            }
     1596        }
    15951597    }
    15961598}
Note: See TracChangeset for help on using the changeset viewer.