Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#43683 closed enhancement (invalid)

add_form_fields & edit_form_fields adding order.

Reported by: basvandijkk Owned by:
Priority: normal Milestone:
Component: Taxonomy Version: 4.9.4
Severity: normal Keywords:
Cc: Focuses: administration

Description

Whenever you use the following action:

<?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
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.

Change History (2)

#1 @basvandijkk
8 years ago

  • Resolutioninvalid
  • Status newclosed

#2 @netweb
8 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.