[wp-trac] Re: [WordPress Trac] #10106: wp-config-sample.php missing closing PHP tag

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 11 14:51:55 GMT 2009


#10106: wp-config-sample.php missing closing PHP tag
--------------------------+-------------------------------------------------
 Reporter:  sojweb        |        Owner:            
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:  Unassigned
Component:  General       |      Version:            
 Severity:  normal        |   Resolution:  invalid   
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * status:  new => closed
  * version:  2.8 =>
  * resolution:  => invalid


Comment:

 This is a feature, not a bug.

 First, closing PHP tags are optional.

 More importantly, since this is a user-edited file, it's highly likely
 that someone's text editor will add a line break after the closing tag,
 causing error messages that aren't immediately traceable.  Leaving off the
 closing tag avoids that headache.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10106#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list