Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#7948 closed defect (bug) (fixed)

Admin menus using admin.php

Reported by: mattyrob's profile mattyrob Owned by:
Milestone: 2.7 Priority: high
Severity: critical Version: 2.7
Component: Administration Keywords:
Focuses: Cc:

Description

Any plugin adding more than one administration page will run into this issue, basically, admin pages are all being added to the root page of wp-admin/admin.php and only the final function adding the page content is used even if multiple pages are added.

Test the attached simple code. It should add a page under Manage (now Tools) and one under Options.

It adds a placeholder but the content for both pages is actually that expected for the Manage hook.

Attachments (1)

admin_test.php (376 bytes) - added by mattyrob 15 years ago.

Download all attachments as: .zip

Change History (5)

@mattyrob
15 years ago

#1 @ryan
15 years ago

(In [9285]) Fix links for submenus added to existing menus. see #7948

#2 @ryan
15 years ago

That fixes the links. Both submenus are still being marked as current though.

#3 @ryan
15 years ago

(In [9286]) Fix links for submenus that have real parents when a submenu with admin.php as a parent is current. see #7948

#4 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9287]) Fix current submenu designation when sub swith the same hook exist under different parents. fixes #7948

Note: See TracTickets for help on using tickets.