[wp-trac] [WordPress Trac] #15025: Undefined variable content for empty files in Theme Editor

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 4 08:40:54 UTC 2010


#15025: Undefined variable content for empty files in Theme Editor
--------------------------+-------------------------------------------------
 Reporter:  GamajoTech    |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.0.1          
 Severity:  normal        |    Keywords:  notice         
--------------------------+-------------------------------------------------
 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 />
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15025>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list