Changeset 33877 for branches/4.3
- Timestamp:
- 09/03/2015 03:30:26 AM (9 years ago)
- Location:
- branches/4.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
-
branches/4.3/src/wp-admin/includes/upgrade.php
r33647 r33877 1590 1590 $cron_array = _get_cron_array(); 1591 1591 if ( isset( $cron_array['wp_batch_split_terms'] ) ) { 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 } 1592 unset( $cron_array['wp_batch_split_terms'] ); 1593 _set_cron_array( $cron_array ); 1597 1594 } 1598 1595 } -
branches/4.3/src/wp-includes/taxonomy.php
r33647 r33877 4438 4438 4439 4439 /** 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, 4441 4441 * check that it's still scheduled while we haven't finished splitting terms. 4442 4442 * … … 4445 4445 */ 4446 4446 function _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' ); 4449 4449 } 4450 4450 }
Note: See TracChangeset
for help on using the changeset viewer.