Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#51279 closed defect (bug) (duplicate)

Theme Editor: Undefined variable: error

Reported by: pbiron's profile 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 5 years ago.

Download all attachments as: .zip

Change History (2)

@pbiron
5 years ago

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