[wp-trac] [WordPress Trac] #21983: Sitemap xml feed from plugin is shown but 404 header added by WordPress if site has no posts
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 24 12:51:21 UTC 2012
#21983: Sitemap xml feed from plugin is shown but 404 header added by WordPress if
site has no posts
--------------------------+----------------------
Reporter: Ov3rfly | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.4.2
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+----------------------
Changes (by markoheijnen):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The error is correct and the plugin doesn't deal with all cases. The
reason is that the main query still tries to get all the posts and when
there aren't one it will show a 404.
I guess it is better to use something like
http://wordpress.org/extend/plugins/google-sitemap-generator/ and then the
beta.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21983#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list