[wp-trac] [WordPress Trac] #22542: wp_insert_term and wp_update_term should include taxonomy as the second parameter when invoking actions edit_terms and edited_terms
WordPress Trac
noreply at wordpress.org
Thu Nov 22 19:04:06 UTC 2012
#22542: wp_insert_term and wp_update_term should include taxonomy as the second
parameter when invoking actions edit_terms and edited_terms
-----------------------------+--------------------------
Reporter: akibjorklund | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Taxonomy
Version: trunk | Severity: normal
Keywords: |
-----------------------------+--------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22542>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list