WordPress.org

Make WordPress Core

Ticket #30261: 30261.19.diff

File 30261.19.diff, 1.1 KB (added by boonebgorges, 4 years ago)
  • src/wp-includes/taxonomy.php

    diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
    index ba8156b..1db44dc 100644
    function _wp_batch_split_terms() { 
    43754375                 LEFT JOIN {$wpdb->terms} t ON t.term_id = tt.term_id
    43764376                 GROUP BY t.term_id
    43774377                 HAVING term_tt_count > 1
    4378                  LIMIT 20"
     4378                 LIMIT 10"
    43794379        );
    43804380
    43814381        // No more terms, we're done here.
    function _wp_batch_split_terms() { 
    44014401        $shared_tts = $wpdb->get_results( "SELECT * FROM {$wpdb->term_taxonomy} WHERE `term_id` IN ({$shared_term_ids})" );
    44024402
    44034403        // Split term data recording is slow, so we do it just once, outside the loop.
    4404         $suspend = wp_suspend_cache_invalidation( true );
    44054404        $split_term_data = get_option( '_split_terms', array() );
    44064405        $skipped_first_term = $taxonomies = array();
    44074406        foreach ( $shared_tts as $shared_tt ) {
    function _wp_batch_split_terms() { 
    44324431                _get_term_hierarchy( $tax );
    44334432        }
    44344433
    4435         wp_suspend_cache_invalidation( $suspend );
    44364434        update_option( '_split_terms', $split_term_data );
    44374435
    44384436        delete_option( $lock_name );