[wp-trac] [WordPress Trac] #43683: add_form_fields & edit_form_fields adding order.

WordPress Trac noreply at wordpress.org
Tue Apr 3 10:06:12 UTC 2018


#43683: add_form_fields & edit_form_fields adding order.
----------------------------+-----------------------------
 Reporter:  basvandijkk     |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Taxonomy        |    Version:  4.9.4
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Whenever you use the following action:
 {{{#!php
 <?php
 add_action( '*custom_taxonomy*_add_form_fields', function() {
    print 'test';
 });
 }}}
 The content gets printed after all of the other category fields.
 But when using the following action:
 {{{#!php
 <?php
 add_action( '*custom_taxonomy*_edit_form_fields', function() {
    print 'test';
 });
 }}}


 The content gets printed before all of the other category fields. Its not
 a major bug/mistake but it woud definitely be an improvement if the same
 position would be used for both the actions.


 '''Steps to reproduce:'''
 - Make a custom taxonomy.
 - Use the actions "*custom_taxonomy*_add_form_fields" &
 "*custom_taxonomy*_edit_form_fields" and print something within.
 - View the position of the printed text when creating a new
 category(within custom taxonomy ofcourse).
 - View the position of the printed text when editing an existing
 category(within custom taxonomy ofcourse).

 '''Expected output:'''
 Having both actions being executed before OR after all of the form
 existing(by default) fields.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43683>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list