[wp-trac] [WordPress Trac] #12171: add_category_form_fields Action Fires Twice
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 8 02:19:34 UTC 2010
#12171: add_category_form_fields Action Fires Twice
--------------------------+-------------------------------------------------
Reporter: blepoxp | Owner: filosofo
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords: dev-feedback
--------------------------+-------------------------------------------------
The add_category_form_fields action fires twice in /wp-admin/edit-tags.php
on line 341 - 345 in trunk with r. 13020.
This seems to happen because add_category_form_fields gets called and then
'add_' . $taxonomy . '_form' gets called.
I can submit a patch once I know which do_action needs to be removed.
{{{
if ( 'category' == $taxonomy )
do_action('edit_category_form', (object)array('parent' => 0) );
else
do_action('add_tag_form', $taxonomy);
do_action('add_' . $taxonomy . '_form', $taxonomy);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12171>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list