#3285 closed enhancement (worksforme)
add_menu_page + add_submenu_page bug
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Administration | Version: | 2.0.4 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
You will find in the attached file, the results of my coding.
I am trying to have a menu and submenus like the 'Link' one
I attached pictures to show what is the result.
The codex doc is not accurate. (see 'On1' & 'On2' strings and how they are displayed (sic !))
Adding submenus to new menu makes the menu a submenu ???
But Wordpress IS a wonderful tool, congratulations to every one. indeed !
Attachments (1)
Change History (5)
comment:1
Viper007Bond — 7 years ago
- Milestone set to 2.0.1
- Priority changed from normal to low
- Severity changed from normal to minor
- Type changed from defect to enhancement
- Version set to 2.0.4
comment:2
foolswisdom — 7 years ago
- Milestone changed from 2.0.1 to 2.1
Note: See
TracTickets for help on using
tickets.

I'm lost on what you're trying to do. Are you trying to make a top level menu and then have the first tab under it a different name than the top level menu? If so, you can't currently do that. When you make a new top level menu, it automatically creates a sub-menu with the same title under it so that there is something there for sure.
For add_menu_page(), the first parameter is for the tab name, the 2nd is for the <title>.
Simply put, no bugs here, just a feature request it looks like.