Pass the taxonomy of the split tt_id to the 'split_shared_term' filter.
Props mboynes. See #30335. Built from https://develop.svn.wordpress.org/trunk@30493 git-svn-id: http://core.svn.wordpress.org/trunk@30482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6f9eaf5df5
commit
14e6c301ea
|
@ -4125,11 +4125,12 @@ function _split_shared_term( $term_id, $term_taxonomy_id ) {
|
||||||
*
|
*
|
||||||
* @since 4.1.0
|
* @since 4.1.0
|
||||||
*
|
*
|
||||||
* @param int $term_id ID of the formerly shared term.
|
* @param int $term_id ID of the formerly shared term.
|
||||||
* @param int $new_term_id ID of the new term created for the $term_taxonomy_id.
|
* @param int $new_term_id ID of the new term created for the $term_taxonomy_id.
|
||||||
* @param int $term_taxonomy_id ID for the term_taxonomy row affected by the split.
|
* @param int $term_taxonomy_id ID for the term_taxonomy row affected by the split.
|
||||||
|
* @param string $taxonomy Taxonomy for the split term.
|
||||||
*/
|
*/
|
||||||
do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id );
|
do_action( 'split_shared_term', $term_id, $new_term_id, $term_taxonomy_id, $term_taxonomy->taxonomy );
|
||||||
|
|
||||||
return $new_term_id;
|
return $new_term_id;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30492';
|
$wp_version = '4.1-beta2-30493';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue