WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#51279 closed defect (bug) (duplicate)

Theme Editor: Undefined variable: error

Reported by: pbiron Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

The variable $error is only initialized when the file to be edited does not exist.

However, that variable is accessed in 2 places without verifying that it has been set, thus causing a PHP error when the file exists.

Attachments (1)

51279.diff (804 bytes) - added by pbiron 3 months ago.

Download all attachments as: .zip

Change History (2)

@pbiron
3 months ago

#1 @SergeyBiryukov
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for the report! This is already fixed in #51219.

Note: See TracTickets for help on using tickets.