Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#18662 closed enhancement (duplicate)

Misleading error message for non-existent plugin settings page

Reported by: latz's profile Latz Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Plugins Keywords: has-patch 2nd-opinion
Focuses: Cc:


If you call a plugin settings page that does not exist
(e.g. http://.../wp-admin/options-general.php?page=not-here) WordPress dies with the error message "You do not have sufficient permissions to access this page." though the user would have the permissions if the page would exist.

Quite confusing. Happened to me as an author changed the $menu_slug in an update and I tried to load the option page via my browser's bookmark. Took me some time to figure out what the problem was.

The error message should be "Plugin setting page does not exist."

Attachments (1)

18662.diff (1.3 KB) - added by Latz 13 years ago.

Download all attachments as: .zip

Change History (2)

13 years ago

#1 @SergeyBiryukov
13 years ago

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