[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 21:10:23 UTC 2014
#28508: Turning on RSS feed should not return 404 page not found if no posts
--------------------------+-----------------------
Reporter: bretterer | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Feeds | Version: 3.9.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------
Changes (by bretterer):
* status: closed => reopened
* resolution: duplicate =>
Comment:
It does not test as valid xml when you run it though
http://feedvalidator.org/ or any other rss feed validator...
Replying to [comment:2 SergeyBiryukov]:
> > 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:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list