WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/21/2014 03:13:20 AM (5 years ago)
Author:
boonebgorges
Message:

Pass the taxonomy of the split tt_id to the 'split_shared_term' filter.

Props mboynes.
See #30335.

File:
1 edited

Legend:

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

    r30492 r30493  
    41264126     * @since 4.1.0
    41274127     *
    4128      * @param int $term_id          ID of the formerly shared term.
    4129      * @param int $new_term_id      ID of the new term created for the $term_taxonomy_id.
    4130      * @param int $term_taxonomy_id ID for the term_taxonomy row affected by the split.
    4131      */
    4132     do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id );
     4128     * @param int    $term_id          ID of the formerly shared term.
     4129     * @param int    $new_term_id      ID of the new term created for the $term_taxonomy_id.
     4130     * @param int    $term_taxonomy_id ID for the term_taxonomy row affected by the split.
     4131     * @param string $taxonomy         Taxonomy for the split term.
     4132     */
     4133    do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id, $term_taxonomy->taxonomy );
    41334134
    41344135    return $new_term_id;
Note: See TracChangeset for help on using the changeset viewer.