Ticket #30261: 30261.17.diff
File 30261.17.diff, 822 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/taxonomy.php
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 ) { … … 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 );