Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#11285 closed enhancement (fixed)

/wp-admin/categories.php needs a edit_category_form_fields hook.

Reported by: thened's profile thened Owned by: filosofo's profile filosofo
Milestone: 3.0 Priority: low
Severity: minor Version: 2.9
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description

In /wp-admin/edit-category-form.php there is a edit_category_form_fields hook at the end of the table above the submit button.

In categories.php this hook doesn't exist so you can't use the same method to attach functionality to the edit category form in both places it appears.

Having this hook in place would make developing category related plugins a lot better.

Attachments (2)

categories.php (9.1 KB) - added by thened 15 years ago.
11285-add_category_form_fields.patch (634 bytes) - added by nacin 15 years ago.
add_category_form_fields action

Download all attachments as: .zip

Change History (5)

@thened
15 years ago

#1 @nacin
15 years ago

  • Keywords has-patch commit added
  • Milestone changed from Unassigned to 2.9
  • Type changed from feature request to enhancement
  • Version changed from 2.8.6 to 2.9

Since edit-category-form.php builds the form using a table, but categories.php uses divs, then the actions should be separate.

Patch attached adds an 'add_category_form_fields' hook.

Take a look at how to submit a patch: http://codex.wordpress.org/Reporting_Bugs#Patching_Bugs.

@nacin
15 years ago

add_category_form_fields action

#2 @westi
15 years ago

  • Cc westi added
  • Keywords commit removed
  • Milestone changed from 2.9 to 3.0

Could you attach a simple plugin demonstrating how this hook would be used.

I don't want to add a hook here which is untested and doesn't work correctly and I think this can wait till 3.0

#3 @dd32
15 years ago

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

See: (In [12941]) Migrate Category Edit UI hooks, Standardise on custom-taxonomies hooks, add custom-fields for taxonomies UI hooks. See #11838, Fixes #11191

The category files have been removed from trunk, and merged into the Tags edit screen. I've added the hooks mentioned here in i believe.

Re-open this if the hooks in the above commit dont seem to meet your needs.

Note: See TracTickets for help on using tickets.