diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php
index 59ec5345fe0c..eaadaad65c4a 100644
a
|
b
|
function wp_insert_term( $term, $taxonomy, $args = array() ) { |
2573 | 2573 | $tt_id = (int) $wpdb->insert_id; |
2574 | 2574 | |
2575 | 2575 | /* |
2576 | | * Sanity check: if we just created a term with the same parent + taxonomy + slug but a higher term_id than |
| 2576 | * Confidence check: if we just created a term with the same parent + taxonomy + slug but a higher term_id than |
2577 | 2577 | * an existing term, then we have unwittingly created a duplicate term. Delete the dupe, and use the term_id |
2578 | 2578 | * and term_taxonomy_id of the older term instead. Then return out of the function so that the "create" hooks |
2579 | 2579 | * are not fired. |