[wp-trac] [WordPress Trac] #28508: Turning on RSS feed should not return 404 page not found if no posts
WordPress Trac
noreply at wordpress.org
Thu Jul 17 20:35:34 UTC 2014
#28508: Turning on RSS feed should not return 404 page not found if no posts
--------------------------+------------------------
Reporter: bretterer | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Feeds | Version: 3.9.1
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
> When you have no posts, I think it should return something that
describes the site but just has empty item list. Doing so would make it so
the feed would be a valid feed.
I do get a valid empty feed after removing the sample post on a clean
install:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
<channel>
<title>WordPress 3.8.1 » Page not found</title>
<atom:link href="http://releases.wordpress/3.8.1/feed/" rel="self"
type="application/rss+xml" />
<link>http://releases.wordpress/3.8.1</link>
<description>Ещё один сайт на WordPress</description>
<lastBuildDate>Tue, 01 Apr 2014 10:34:10 +0000</lastBuildDate>
<language>ru-RU</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>http://wordpress.org/?v=3.8.1</generator>
</channel>
</rss>
}}}
However, the HTTP status code is 404. Closing as a duplicate of #18505 and
#27146.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28508#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list