[wp-trac] [WordPress Trac] #12718: Better structure for admin menu

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 2 04:57:54 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 mikeschinkel):

 Replying to [comment:63 scribu]:
 > [attachment:12718.5.diff]:
 >
 > * move function definitions from class-wp-admin-menu.php and
 includes/menu.php to includes/menu-functions.php
 > * move private methods from WP_Admin_Menu to includes/functions.php
 > * move high-level logic from wp-admin/menu.php into includes/menu.php
 >

 Also, can I plead for deprecating the admin menu functions that take
 between 7 and 9 parameters and instead replace with ones that access an
 array of arguments?  Specifically functions like these any maybe a few
 more?

 - `add_menu_page()`
 - `add_submenu_page()`
 - `add_comments_page()`
 - `add_utility_page()`
 - `add_object_page()`


 And I'll be happy to help with any of the coding, I just need direction
 from those who need the help because ''"too many cooks spoil the broth."''
 Unless I know what kind of help and how it'd just be a waste time to
 develop something that would ultimately conflict with what others are
 doing.  For example, if deprecating those functions is blessed I'll be
 happy to do the work of deprecating them and creating new ones.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12718#comment:66>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list