Make WordPress Core

Opened 20 years ago

Closed 18 years ago

#3751 closed defect (bug) (invalid)

Wrong menu in added Admin panel

Reported by: takayukister Owned by:
Priority: normal Milestone:
Component: Administration Version: 2.1
Severity: normal Keywords:
Cc: Focuses:

Description

When you add two or more submenus on Admin panel by a plugin, say "Page One" on "Write" menu and "Page Two" on "Manage" menu, the menu of the Page Two incorrectly shows "Write - Page One".

This behavior can be easily reproduced by using attached test plugin.

It seems that this is caused in get_admin_page_parent() in wp-admin/admin-functions.php. I made an ad hoc patch and it works for me.

​Ticket #1447 also mentioned this, mainly about get_admin_page_title() though.

Attachments (2)

menu-test.php​ (803 bytes ) - added by takayukister 20 years ago.
The problem can be reproduced by this plugin.
admin-functions.php.diff​ (881 bytes ) - added by takayukister 20 years ago.
Ad hoc patch.

Download all attachments as: .zip

Change History (7)

@takayukister
20 years ago

The problem can be reproduced by this plugin.

#1 @foolswisdom
20 years ago

  • Milestone 2.3 → 2.2

#2 @Nazgul
20 years ago

  • Keywords has-patch added; menu submenu admin plugin removed

#3 @foolswisdom
20 years ago

  • Milestone 2.2 → 2.3

#4 @markjaquith
19 years ago

  • Milestone 2.3 → 2.4 (next)

All in favor of completely redoing our crazy menu system so that it makes sense?

(Aye)

#5 @mrmist
18 years ago

  • Keywords has-patch removed
  • Milestone 2.9
  • Resolution → invalid
  • Status new → closed

Flushing this one since the 2.7 UI redesign.

Re-open if it still presents a problem.

Note: See TracTickets for help on using tickets.