Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#43683 closed enhancement (invalid)

add_form_fields & edit_form_fields adding order.

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

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

  • Resolution set to invalid
  • Status changed from new to closed

#2 @netweb
7 years ago

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