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

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 18 21:06:47 UTC 2012


#12718: Better structure for admin $menu
-------------------------+------------------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by scribu):

 The reason I'm hesitating about getting rid of separators is that it adds
 another layer that you need to navigate through:

 {{{
 $admin_menu->get( 'dashboard' )->append( array( ... ) );
 }}}

 becomes

 {{{
 $admin_menu->get( 'object_group' )->get( 'dashboard' )->append( array( ...
 ) );
 }}}

 etc.

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


More information about the wp-trac mailing list