[wp-trac] [WordPress Trac] #18332: Blank lines after ?> in wp-feed.php causes XML feed error

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 5 01:45:04 UTC 2011


#18332: Blank lines after ?> in wp-feed.php causes XML feed error
-------------------------------------+------------------------------
 Reporter:  alexbenfica              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Feeds                    |     Version:  3.2.1
 Severity:  normal                   |  Resolution:
 Keywords:  reporter-feedback close  |
-------------------------------------+------------------------------
Changes (by dd32):

 * keywords:   => reporter-feedback close
 * severity:  critical => normal


Comment:

 A Single blank line after a closing `?>` is striped/ignored by PHP, only
 multiple new line will be output.

 The usual suspect here is Theme (functions.php) and/or Plugin files with
 multiple linebreaks outside of the PHP. WordPress Core doesn't output
 extra lines itself, and I just verified that myself.

 Can you just check to see if it IS the linebreak from that file, or if its
 indeed from a plugin/theme?

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


More information about the wp-trac mailing list