[wp-trac] [WordPress Trac] #13049: Wordpress should not generate feeds for 404 pages

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 24 06:06:50 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:  Feeds         |     Version:  3.0         
 Severity:  normal        |    Keywords:  dev-feedback
--------------------------+-------------------------------------------------

Comment(by solarissmoke):

 Tracked down the origin of this to
 [http://core.trac.wordpress.org/ticket/3019 3019], where the issue was
 indeed that empty feeds were getting 404's.

 However, the current behaviour isn't consistent because feeds for empty
 categories return a 200 status with an empty feed, but some other feeds
 (e.g for global comments feed if there are no comments) are returning a
 404 - which is wrong because the feed is valid, it's just empty.

 The behaviour ought to be: if the feed is valid, but empty, return an
 empty feed with status 200. If the feed is invalid (because the
 slug/category etc doesn't exist), then return a 404 page in HTML. In
 either case, is_feed() and is_404() cannot be true at once.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13049#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list