[wp-trac] [WordPress Trac] #23014: template-loader.php process feeds and trackbacks bug
WordPress Trac
noreply at wordpress.org
Thu Dec 20 04:37:45 UTC 2012
#23014: template-loader.php process feeds and trackbacks bug
-----------------------------+--------------------------
Reporter: cobrasjp14 | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Feeds
Version: 3.5 | Severity: normal
Keywords: needs-patch |
-----------------------------+--------------------------
In the latest version of Wordpress, 3.5, the template-loader.php file has
been changed and now processing feeds and trackbacks no longer functions
correctly. I noticed this when trying to validate my RSS2 feed. The main
blog page was concatenated to the RSS XML code. My site has Wordpress
themes set to FALSE.
The problem is on lines 16, 19, and 22 where "exit();" was changed to
"return;" When a feed is detected by the function is_feed(), the feed is
then correctly output, however, by calling "return" and not "exit()", the
rest of the php page is allowed to load. This effectively presents the
RSS XML, then the page HTML to the browser.
This problem is repeatable each time an RSS2 feed for the blog is
requested.
To correct this problem, change "return" on lines 16, 19, and 22, back to
"exit()". This will prevent the rest of the HTML page from loading when a
feed is detected. This will also correct the behavior when a robot or a
trackback is detected.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23014>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list