[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
Sat Jul 25 14:57:52 UTC 2009
#9610: line breaks in functions.php result in invalid XML in RSS feed
--------------------------+-------------------------------------------------
Reporter: rmckillen | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Feeds | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Changes (by achmafooma):
* status: closed => reopened
* resolution: worksforme =>
Comment:
I just ran into this. In your theme's functions.php file, if you have an
empty line OUTSIDE of PHP tags, it screws up BOTH the RSS feeds and the
XMLRPC XML, which causes errors in feed readers and XMLRPC tools (like
WordPress BlackBerry & iPhone apps).
In your active theme's functions.php add:
{{{
code
?>
<?php
more code
}}}
That BLANK LINE is the important bit. After putting this in your active
theme's functions.php file, going to http://site.com/feed or
http://site.com/xmlrpc?rdp you'll get the blank line at the top of the XML
files, making them invalid.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9610#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list