[wp-trac] [WordPress Trac] #17617: "edit_tag_form" action incorrectly performed for categories

WordPress Trac wp-trac at lists.automattic.com
Tue May 31 05:12:22 UTC 2011


#17617: "edit_tag_form" action incorrectly performed for categories
----------------------------+---------------------
 Reporter:  michaeltyson    |       Owner:  dd32
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  3.2
Component:  Administration  |     Version:  3.2
 Severity:  normal          |  Resolution:  fixed
 Keywords:  needs-patch     |
----------------------------+---------------------

Comment (by dd32):

 Tidbit of code for testing these actions too (dump the filternames when
 run)

 {{{
 add_action('init', 'taxonomy_form_fields', 10000);
 function taxonomy_form_fields() {
         $actions = array('edit_category_form_pre',
 'edit_link_category_form_pre', 'edit_tag_form_pre', '_pre_edit_form',
 'edit_category_form_fields', 'edit_link_category_form_fields',
 'edit_tag_form_fields', '_edit_form_fields', 'edit_category_form',
 'edit_link_category_form', 'edit_tag_form', '_edit_form',
 'add_category_form_pre', 'add_link_category_form_pre', 'add_tag_form_pre',
 '_pre_add_form', 'edit_category_form', 'edit_link_category_form',
 'add_tag_form', '_add_form');
         foreach ( array_unique($actions) as $action ) {
                 if ( '_' != $action{0} )
                         add_action($action, 'echo_current_filter');
                 else
                         foreach ( get_taxonomies() as $tax )
                                 add_action( $tax . $action,
 'echo_current_filter');

         }
         function echo_current_filter() { var_dump(current_filter()); }
 }

 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17617#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list