WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#7811 closed defect (bug) (fixed)

Wordpress 2.7 causes 404s for some plugin admin pages

Reported by: mark8barnes Owned by: ryan
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: Administration Keywords:
Focuses: Cc:

Description

I have a plugin which has worked fine in all previous recent versions of WP. The plugin creates a top-level menu with several sub-menus. In WP2.7, sub-menus have the wrong URL on certain menus.

That is, if I am on (e.g.) the "write" page, the URL for my submenu is
http://preview.4-14.org.uk/wp-admin/admin.php?page=sermon-browser/sermon.php
This works.

But if I am on the dashboard, the URL for my submenu is
http://preview.4-14.org.uk/wp-admin/sermon-browser/sermon.php?page=sermon-browser/sermon.php
This gives a 404. The comments page does the same. Neither dashboard or comments have a submenu of their own - perhaps that makes the difference.

The code my plugin uses to create the submenus can be seen here: (lines 61f).

I understand how to fix this in my plugin, but wanted to create the ticket to (1) Prompt documentation for other developers or (2) Fix the core to prevent this happening.

Change History (3)

comment:1 ryan6 years ago

  • Owner changed from anonymous to ryan

comment:2 mark8barnes6 years ago

It's worth adding (to point out the obvious), that in previous versions of WP, you couldn't click directly on a plugin's submenus from another section of the admin. So if the problem was there, none of us would notice (at least unless we had a fancy admin menu plugin).

comment:3 ryan6 years ago

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

These problems should be fixed now. Reopen if problems persist.

Note: See TracTickets for help on using tickets.