Taxonomy: Fix values passed to actions in wp_modify_term_count_by_now()
.
Replace the `WP_Taxonomy` object with the taxonomy slug in the values passed to the actions `edit_term_taxonomy` and `edited_term_taxonomy` within `wp_modify_term_count_by_now()`. Follow up to [49141], [49171]. Props Chouby, lcyh78. Fixes #40351. git-svn-id: https://develop.svn.wordpress.org/trunk@49316 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f108962185
commit
db2a1ba75d
@ -3444,7 +3444,7 @@ function wp_modify_term_count_by_now( $tt_ids, $taxonomy, $modify_by ) {
|
||||
|
||||
foreach ( $tt_ids as $tt_id ) {
|
||||
/** This action is documented in wp-includes/taxonomy.php */
|
||||
do_action( 'edit_term_taxonomy', $tt_id, $taxonomy );
|
||||
do_action( 'edit_term_taxonomy', $tt_id, $taxonomy->name );
|
||||
}
|
||||
|
||||
$result = $wpdb->query(
|
||||
@ -3461,7 +3461,7 @@ function wp_modify_term_count_by_now( $tt_ids, $taxonomy, $modify_by ) {
|
||||
|
||||
foreach ( $tt_ids as $tt_id ) {
|
||||
/** This action is documented in wp-includes/taxonomy.php */
|
||||
do_action( 'edited_term_taxonomy', $tt_id, $taxonomy );
|
||||
do_action( 'edited_term_taxonomy', $tt_id, $taxonomy->name );
|
||||
}
|
||||
|
||||
clean_term_cache( $tt_ids, '', false );
|
||||
|
Loading…
Reference in New Issue
Block a user