[wp-trac] [WordPress Trac] #12718: Better structure for admin menu
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 2 14:48:28 UTC 2012
#12718: Better structure for admin menu
------------------------------------+-----------------------
Reporter: scribu | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.5
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------
Comment (by scribu):
Replying to [comment:66 mikeschinkel]:
> Also, can I plead for deprecating the admin menu functions that take
between 7 and 9 parameters and instead replace with ones that pass an
array of name/value pair arguments? Specifically functions like these and
maybe a few more?,
>
> - `add_menu_page()`
> - `add_submenu_page()`
> - `add_comments_page()`
> - `add_utility_page()`
> - `add_object_page()`
Those functions do more than generate admin menus. They register the
actual pages, so replacing them is outside the scope of this ticket,
though definitely a very good candidate for refactoring as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12718#comment:68>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list