WordPress.org

Make WordPress Core

Changeset 30492


Ignore:
Timestamp:
11/21/2014 03:12:42 AM (4 years ago)
Author:
boonebgorges
Message:

Store data about old and new term IDs when shared terms are split.

Props mboynes.
See #30335.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r30365 r30492  
    41164116    }
    41174117
     4118    // Keep a record of term_ids that have been split, keyed by old term_id.
     4119    $split_term_data = get_option( '_split_terms_' . $term_taxonomy->taxonomy, array() );
     4120    $split_term_data[ $term_id ] = $new_term_id;
     4121    update_option( '_split_terms_' . $term_taxonomy->taxonomy, $split_term_data );
     4122
    41184123    /**
    41194124     * Fires after a previously shared taxonomy term is split into two separate terms.
Note: See TracChangeset for help on using the changeset viewer.