Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#3285 closed enhancement (worksforme)

add_menu_page + add_submenu_page bug

Reported by: arena Owned by: anonymous
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)

worpressadminmenu.tar.rar (85.2 KB) - added by arena 7 years ago.

Download all attachments as: .zip

Change History (5)

arena7 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

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.

  • Milestone changed from 2.0.1 to 2.1

comment:3   matt6 years ago

  • Resolution set to worksforme
  • Status changed from new to closed
  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.