WordPress.org

Make WordPress Core

Ticket #30261: 30261.17.diff

File 30261.17.diff, 822 bytes (added by Chouby, 4 years ago)
  • src/wp-includes/taxonomy.php

     
    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 ) {
     
    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 );