[wp-trac] [WordPress Trac] #9610: line breaks in functions.php result in invalid XML in RSS feed

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 27 16:43:44 UTC 2009


#9610: line breaks in functions.php result in invalid XML in RSS feed
--------------------------+-------------------------------------------------
 Reporter:  rmckillen     |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  XML-RPC       |      Version:         
 Severity:  normal        |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by filosofo):

  * status:  reopened => closed
  * resolution:  => invalid


Comment:

 Replying to [comment:10 achmafooma]:
 > To me, this is definitely a bug either in how WP parses functions.php
 files or in how WP generates the XML for RSS / XML-RPC. A blank line in
 functions.php (even if this is incorrect/improper) should not inexplicably
 put a blank line on top of WP-generated XML and break RSS / XML-RPC!

 No, it's how PHP works.  Lines outside of closing PHP tags are printed.
 As the active theme's functions.php file is always included, the extra
 line is always printed, causing the error.

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


More information about the wp-trac mailing list