[wp-trac] [WordPress Trac] #13049: Wordpress should not generate feeds for 404 pages
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 19 11:32:20 UTC 2010
#13049: Wordpress should not generate feeds for 404 pages
--------------------------+-------------------------------------------------
Reporter: solarissmoke | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: 3.0
Component: General | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Say I try to visit: `http://my.blog.tld/non-existent-slug/`, (where non-
existent-slug is not a valid slug) I get a the normal 404 template.
However, if I try to visit `http://my.blog.tld/non-existent-slug/feed/`,
then the response is a bit weird. A 404 response header is sent but the
content is nonetheless sent through the feed template. And so you get
something like this:
{{{
<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
<title>A Sandbox » Page not found</title>
<link>http://my.blog.tld</link>
<description>Just another WordPress weblog</description>
<lastBuildDate>Mon, 19 Apr 2010 11:17:05 +0000</lastBuildDate>
<docs>http://backend.userland.com/rss092</docs>
<language>en</language>
<!-- generator="WordPress/3.0-beta1" -->
</channel>
</rss>
}}}
Assuming this isn't intentional (I can't think why it would be), this
should be changed so that the content is the normal 404 template.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13049>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list