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

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 28 11:42:46 UTC 2010


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

Comment(by scribu):

 > As I write that last example I think maybe it would be better if I
 modified it to "sniff" out the distinction between title, slug, and/or
 index; i.e. look first to see if is_numeric(), if not then look to match
 slug, if not look to match title. Your thoughts?

 I think we should just use slugs. Indexes are what we're trying to get
 away from and titles are translatable.

 As such, you wouldn't need the third parameter for
 delete_admin_menu_item().

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


More information about the wp-trac mailing list