Make WordPress Core

Opened 6 years ago

Closed 4 years ago

#42941 closed enhancement (fixed)

Improve options.php error "options page not found"

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


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

Download all attachments as: .zip

Change History (5)

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

6 years ago

6 years ago

#2 @williampatton
6 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
4 years ago

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

#4 @SergeyBiryukov
4 years 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.