#15025 closed defect (bug) (fixed)
Undefined variable content for empty files in Theme Editor
Reported by: |
|
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)
Note: See
TracTickets for help on using
tickets.
(In [15699]) Initialize a variable. fixes #15025.