[wp-trac] [WordPress Trac] #7966: Drop down menu with only one item?

WordPress Trac wp-trac at lists.automattic.com
Sun Oct 26 03:41:28 GMT 2008


#7966: Drop down menu with only one item?
----------------------------+-----------------------------------------------
 Reporter:  stevish         |       Owner:  anonymous
     Type:  enhancement     |      Status:  new      
 Priority:  normal          |   Milestone:  2.8      
Component:  Administration  |     Version:  2.7      
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 ''I don't know whether to label this as a defect or enhancement, but
 either way, I'm not sure if it will make the 2.7 release. I'll assume
 enhancement (even though it's leaning toward defect to me).''

 In the current version of 2.7, the Dashboard menu in the sidebar of the
 administration page only contains one item: Dashboard. Therefore, when you
 go to your dashboard, there are two links in your sidebar that say the
 same thing, link to the same place, and are one on top of the other. This
 seems redundant, and is a waste of space on the sidebar.

 There should be code implemented that does away with the "Drop-down" part
 of a menu with only one item (since clicking on the menu title will take
 you there anyway). This way, a fresh install of WP will not have the
 useless dashboard menu taking up space, but as soon as the user installs
 Akistmet (or any other plugin that puts another menu item under dashboard
 menu), the menu will regain its drop-down-ability, accommodating the new
 menu item.

 This could also apply to a top level menu added by a plugin that only has
 one item in it (even though creating such a menu would be frowned upon).

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7966>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list