diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index ba8156b..1db44dc 100644
|
|
|
function _wp_batch_split_terms() { |
| 4375 | 4375 | LEFT JOIN {$wpdb->terms} t ON t.term_id = tt.term_id |
| 4376 | 4376 | GROUP BY t.term_id |
| 4377 | 4377 | HAVING term_tt_count > 1 |
| 4378 | | LIMIT 20" |
| | 4378 | LIMIT 10" |
| 4379 | 4379 | ); |
| 4380 | 4380 | |
| 4381 | 4381 | // No more terms, we're done here. |
| … |
… |
function _wp_batch_split_terms() { |
| 4401 | 4401 | $shared_tts = $wpdb->get_results( "SELECT * FROM {$wpdb->term_taxonomy} WHERE `term_id` IN ({$shared_term_ids})" ); |
| 4402 | 4402 | |
| 4403 | 4403 | // Split term data recording is slow, so we do it just once, outside the loop. |
| 4404 | | $suspend = wp_suspend_cache_invalidation( true ); |
| 4405 | 4404 | $split_term_data = get_option( '_split_terms', array() ); |
| 4406 | 4405 | $skipped_first_term = $taxonomies = array(); |
| 4407 | 4406 | foreach ( $shared_tts as $shared_tt ) { |
| … |
… |
function _wp_batch_split_terms() { |
| 4432 | 4431 | _get_term_hierarchy( $tax ); |
| 4433 | 4432 | } |
| 4434 | 4433 | |
| 4435 | | wp_suspend_cache_invalidation( $suspend ); |
| 4436 | 4434 | update_option( '_split_terms', $split_term_data ); |
| 4437 | 4435 | |
| 4438 | 4436 | delete_option( $lock_name ); |