#22542 closed defect (bug) (fixed)
wp_insert_term and wp_update_term should include taxonomy as the second parameter when invoking actions edit_terms and edited_terms
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Taxonomy | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
wp_insert_term and wp_update_term only send term id when invoking edit_terms and edited_terms. This makes it hard for plugins hooking into those to retrieve the actual term, since get_term and get_term_by require taxonomy in addition to the id.
Other actions on these functions do add the taxonomy to the parameters. For example edit_term and edited_term. So it is hard to understand why the hooks in question do not.
Attachments (2)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Refreshed patch against trunk