Make WordPress Core

Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#3285 closed enhancement (worksforme)

add_menu_page + add_submenu_page bug

Reported by: arena Owned by:
Priority: low Milestone:
Component: Administration Version: 2.0.4
Severity: minor Keywords:
Cc: Focuses:

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 20 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Viper007Bond
20 years ago

  • Milestone → 2.0.1
  • Priority normal → low
  • Severity normal → minor
  • Type defect → enhancement
  • Version → 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.

#2 @foolswisdom
20 years ago

  • Milestone 2.0.1 → 2.1

#3 @matt
20 years ago

  • Resolution → worksforme
  • Status new → closed

#4 @Nazgul
19 years ago

  • Milestone 2.1
Note: See TracTickets for help on using tickets.