WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 5 months ago

#42941 closed enhancement (fixed)

Improve options.php error "options page not found"

Reported by: tdlewis77 Owned by: SergeyBiryukov
Milestone: 5.4 Priority: normal
Severity: normal Version: 4.9.1
Component: Plugins Keywords: has-patch needs-testing
Focuses: Cc:

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 3 years ago.

Download all attachments as: .zip

Change History (5)

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


3 years ago

@tdlewis77
3 years ago

#2 @williampatton
3 years 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.

#3 @SergeyBiryukov
5 months ago

  • Milestone changed from Awaiting Review to 5.4
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#4 @SergeyBiryukov
5 months ago

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

In 47158:

Administration: Include options page name in the "Options page not found" error message to provide better context for plugin developers.

Props tdlewis77, williampatton.
Fixes #42941.

Note: See TracTickets for help on using tickets.