Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#15025 closed defect (bug) (fixed)

Undefined variable content for empty files in Theme Editor

Reported by: gamajotech's profile GamajoTech Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0.1
Component: Editor Keywords: notice
Focuses: Cc:

Description

When a theme file exists, but is empty (contains 0 characters), and WP_DEBUG is true, then instead of showing it as empty, the textarea is populated with:

<br />
<b>Notice</b>:  Undefined variable: content in <b>/var/www/vhosts/example.com/httpdocs/wp-admin/theme-editor.php</b> on line <b>211</b><br />

Change History (2)

#1 @nacin
14 years ago

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

(In [15699]) Initialize a variable. fixes #15025.

#2 @nacin
14 years ago

  • Milestone changed from Awaiting Review to 3.1
Note: See TracTickets for help on using tickets.