Ticket #33423: 33423.diff
File 33423.diff, 891 bytes (added by , 8 years ago) |
---|
-
wp-admin/includes/upgrade.php
1592 1592 if ( isset( $cron_array['wp_batch_split_terms'] ) ) { 1593 1593 foreach ( $cron_array['wp_batch_split_terms'] as $timestamp_hook => $cron_data ) { 1594 1594 foreach ( $cron_data as $key => $args ) { 1595 wp_unschedule_event( 'wp_batch_split_terms', $timestamp_hook, $args['args'] ); 1595 unset( $cron_array['wp_batch_split_terms'][$timestamp_hook][$key] ); 1596 if ( empty($cron_array['wp_batch_split_terms'][$timestamp_hook]) ) 1597 unset( $cron_array['wp_batch_split_terms'][$timestamp_hook] ); 1598 if ( empty($cron_array['wp_batch_split_terms']) ) 1599 unset( $cron_array['wp_batch_split_terms'] ); 1596 1600 } 1597 1601 } 1598 1602 } 1603 _set_cron_array( $cron_array ); 1599 1604 } 1600 1605 1601 1606 /**