WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 22 months ago

#42941 new enhancement

Improve options.php error "options page not found"

Reported by: tdlewis77 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.1
Component: Plugins Keywords: has-patch needs-testing
Focuses: Cc:
PR Number:

Description

The message generated by options.php when the options page is not in the whitelist is "Error: options page not found". This message is so generic that it provides the plug-in developer with no clue as to what needs to be addressed. A more useful message would be "Error: options page X not found in whitelist."

Attachments (1)

42941.patch (567 bytes) - added by tdlewis77 22 months ago.

Download all attachments as: .zip

Change History (3)

This ticket was mentioned in Slack in #core by tdlewis77. View the logs.


22 months ago

@tdlewis77
22 months ago

#2 @williampatton
22 months ago

  • Keywords has-patch needs-testing added
  • Type changed from defect (bug) to enhancement

This seems like a welcome change to me. It's only a small modification that adds some useful information for people who stumble across this error while developing their options pages.

Changed from defect to enhancement.

Note: See TracTickets for help on using tickets.