﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
23014,template-loader.php process feeds and trackbacks bug,cobrasjp14,,"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.
",defect (bug),closed,normal,,Feeds,2.2,normal,invalid,needs-patch,contact@…
