[wp-trac] [WordPress Trac] #14501: Add $taxonomy as 2nd parameter to 'edit_tag_form_fields' hook
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 1 19:56:59 UTC 2010
#14501: Add $taxonomy as 2nd parameter to 'edit_tag_form_fields' hook
--------------------------+-------------------------------------------------
Reporter: mikeschinkel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Suggestion: Add $taxonomy as a 2nd parameter for the
'edit_tag_form_fields' hook in /wp-admin/edit-tag-form.php, line 67 in
v3.0.1:
Currently:
{{{
do_action('edit_tag_form_fields', $tag);
}}}
Change to:
{{{
do_action('edit_tag_form_fields', $tag, $taxonomy);
}}}
Ironically the taxonomy specific call (line 68) has the $taxonomy as a
parameter:
{{{
do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy);
}}}
And the "add" equivalents on lines 423+424 for /wp-admin/edit-tags.php
have it too:
{{{
do_action('add_tag_form_fields', $taxonomy);
do_action($taxonomy . '_add_form_fields', $taxonomy);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14501>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list