WordPress.org

Make WordPress Core

Changeset 49316


Ignore:
Timestamp:
10/26/2020 11:05:22 PM (12 months ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

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

    r49193 r49316  
    34453445    foreach ( $tt_ids as $tt_id ) {
    34463446        /** This action is documented in wp-includes/taxonomy.php */
    3447         do_action( 'edit_term_taxonomy', $tt_id, $taxonomy );
     3447        do_action( 'edit_term_taxonomy', $tt_id, $taxonomy->name );
    34483448    }
    34493449
     
    34623462    foreach ( $tt_ids as $tt_id ) {
    34633463        /** This action is documented in wp-includes/taxonomy.php */
    3464         do_action( 'edited_term_taxonomy', $tt_id, $taxonomy );
     3464        do_action( 'edited_term_taxonomy', $tt_id, $taxonomy->name );
    34653465    }
    34663466
Note: See TracChangeset for help on using the changeset viewer.