WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15025 closed defect (bug) (fixed)

Undefined variable content for empty files in Theme Editor

Reported by: 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)

comment:1 nacin4 years ago

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

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

comment:2 nacin4 years ago

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