[wp-trac] [WordPress Trac] #21784: Merge edit_form_advanced and edit_page_form hooks
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 4 04:39:24 UTC 2012
#21784: Merge edit_form_advanced and edit_page_form hooks
--------------------------+-----------------------------
Reporter: solarissmoke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.4.1
Severity: minor | Keywords: 2nd-opinion
--------------------------+-----------------------------
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?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21784>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list