diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index 293b18b8b6..26df0916e5 100644
|
|
function wp_insert_term( $term, $taxonomy, $args = array() ) { |
2147 | 2147 | */ |
2148 | 2148 | $name_matches = get_terms( |
2149 | 2149 | $taxonomy, array( |
2150 | | 'name' => $name, |
2151 | | 'hide_empty' => false, |
2152 | | 'parent' => $args['parent'], |
| 2150 | 'name' => $name, |
| 2151 | 'hide_empty' => false, |
| 2152 | 'parent' => $args[ 'parent' ], |
| 2153 | 'update_term_meta_cache' => false, |
2153 | 2154 | ) |
2154 | 2155 | ); |
2155 | 2156 | |
… |
… |
function wp_insert_term( $term, $taxonomy, $args = array() ) { |
2173 | 2174 | if ( is_taxonomy_hierarchical( $taxonomy ) ) { |
2174 | 2175 | $siblings = get_terms( |
2175 | 2176 | $taxonomy, array( |
2176 | | 'get' => 'all', |
2177 | | 'parent' => $parent, |
| 2177 | 'get' => 'all', |
| 2178 | 'parent' => $parent, |
| 2179 | 'update_term_meta_cache' => false, |
2178 | 2180 | ) |
2179 | 2181 | ); |
2180 | 2182 | |
… |
… |
function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { |
2364 | 2366 | if ( ! $append ) { |
2365 | 2367 | $old_tt_ids = wp_get_object_terms( |
2366 | 2368 | $object_id, $taxonomy, array( |
2367 | | 'fields' => 'tt_ids', |
2368 | | 'orderby' => 'none', |
| 2369 | 'fields' => 'tt_ids', |
| 2370 | 'orderby' => 'none', |
| 2371 | 'update_term_meta_cache' => false, |
2369 | 2372 | ) |
2370 | 2373 | ); |
2371 | 2374 | } else { |
… |
… |
function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { |
2454 | 2457 | if ( ! $append && isset( $t->sort ) && $t->sort ) { |
2455 | 2458 | $values = array(); |
2456 | 2459 | $term_order = 0; |
2457 | | $final_tt_ids = wp_get_object_terms( $object_id, $taxonomy, array( 'fields' => 'tt_ids' ) ); |
| 2460 | $final_tt_ids = wp_get_object_terms( |
| 2461 | $object_id, |
| 2462 | $taxonomy, |
| 2463 | array( |
| 2464 | 'fields' => 'tt_ids', |
| 2465 | 'update_term_meta_cache' => false, |
| 2466 | ) |
| 2467 | ); |
2458 | 2468 | foreach ( $tt_ids as $tt_id ) { |
2459 | 2469 | if ( in_array( $tt_id, $final_tt_ids ) ) { |
2460 | 2470 | $values[] = $wpdb->prepare( '(%d, %d, %d)', $object_id, $tt_id, ++$term_order ); |
… |
… |
function _get_term_hierarchy( $taxonomy ) { |
3382 | 3392 | $children = array(); |
3383 | 3393 | $terms = get_terms( |
3384 | 3394 | $taxonomy, array( |
3385 | | 'get' => 'all', |
3386 | | 'orderby' => 'id', |
3387 | | 'fields' => 'id=>parent', |
| 3395 | 'get' => 'all', |
| 3396 | 'orderby' => 'id', |
| 3397 | 'fields' => 'id=>parent', |
| 3398 | 'update_term_meta_cache' => false, |
3388 | 3399 | ) |
3389 | 3400 | ); |
3390 | 3401 | foreach ( $terms as $term_id => $parent ) { |