[wp-trac] [WordPress Trac] #4908: add_menu_page() should be able to
not made it's own sub-menu
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 4 23:35:19 GMT 2007
#4908: add_menu_page() should be able to not made it's own sub-menu
----------------------------+-----------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.4 (next)
Component: Administration | Version: 2.3
Severity: trivial | Keywords: needs-patch
----------------------------+-----------------------------------------------
Currently, when you use `add_menu_page()`, it automatically makes a top-
level menu (this is good), but then goes on to make a sub-menu of the same
name under itself (this can be annoying).
I'd like it a lot better if it didn't and we had to do
`add_submenu_page()` to get a sub-menu. Then we could do menu pages much
like the rest of WordPress (ex: `Options -> General` rather than `Options
-> Options`).
For backwards compatibility though, we'd probably have to make it an
additional parameter tagged onto the end of `add_menu_page()`.
--
Ticket URL: <http://trac.wordpress.org/ticket/4908>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list