Opened 9 months ago
Closed 6 months ago
#21784 closed defect (bug) (wontfix)
Merge edit_form_advanced and edit_page_form hooks
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Editor | Version: | 3.4.1 |
| Severity: | minor | Keywords: | 2nd-opinion has-patch close |
| Cc: |
Description
In the era of custom post types, having to register one hook for pages (edit_page_form) and one for all other post types (edit_form_advanced) to add stuff to the post editor seems a bit weird. I think that these should be consolidated.
I guess the most backward-compatible way would be to deprecate both of these hooks and add one that fires for all post types, and passes the post type as an argument?
Attachments (1)
Change History (4)
solarissmoke — 9 months ago
comment:1
solarissmoke — 9 months ago
- Keywords has-patch added
comment:2
solarissmoke — 6 months ago
- Keywords close added
The introduction of the edit_form_after_editor (r22446) resolves the issue that I had, so unless anyone still feels that having a separate hook for pages is unnecessary, this can probably be closed.
Note: See
TracTickets for help on using
tickets.

Something like this