Ticket #14485: 14485.2.diff
File 14485.2.diff, 663 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/taxonomy.php
2770 2770 */ 2771 2771 function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) { 2772 2772 global $wpdb; 2773 static $cleaned = array();2774 2773 2775 2774 if ( !is_array($ids) ) 2776 2775 $ids = array($ids); … … 2798 2797 } 2799 2798 2800 2799 foreach ( $taxonomies as $taxonomy ) { 2801 if ( isset($cleaned[$taxonomy]) )2802 continue;2803 $cleaned[$taxonomy] = true;2804 2805 2800 if ( $clean_taxonomy ) { 2806 2801 wp_cache_delete('all_ids', $taxonomy); 2807 2802 wp_cache_delete('get', $taxonomy);