Store data about old and new term IDs when shared terms are split.
Props mboynes. See #30335. git-svn-id: https://develop.svn.wordpress.org/trunk@30492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1c11d73f72
commit
430e4250db
@ -4115,6 +4115,11 @@ function _split_shared_term( $term_id, $term_taxonomy_id ) {
|
||||
clean_term_cache( $term_id, $shared_term_taxonomy );
|
||||
}
|
||||
|
||||
// Keep a record of term_ids that have been split, keyed by old term_id.
|
||||
$split_term_data = get_option( '_split_terms_' . $term_taxonomy->taxonomy, array() );
|
||||
$split_term_data[ $term_id ] = $new_term_id;
|
||||
update_option( '_split_terms_' . $term_taxonomy->taxonomy, $split_term_data );
|
||||
|
||||
/**
|
||||
* Fires after a previously shared taxonomy term is split into two separate terms.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user