[wp-trac] [WordPress Trac] #50643: Ensure correct HTTP status when sitemaps are disabled
WordPress Trac
noreply at wordpress.org
Tue Jul 21 00:55:35 UTC 2020
#50643: Ensure correct HTTP status when sitemaps are disabled
---------------------------------------------+------------------------
Reporter: swissspidy | Owner: whyisjake
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.5
Component: Sitemaps | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+------------------------
Changes (by whyisjake):
* owner: (none) => whyisjake
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48523" 48523]:
{{{
#!CommitTicketReference repository="" revision="48523"
Sitemaps: Ensure correct HTTP status when sitemaps are disabled
If sitemaps are disabled, previously there would be a rewrite rule for the
sitemap endpoint. This endpoint would display the homepage since there was
a rewrite rule. Now, Sitemaps are loaded, and the proper HTTP headers are
returned.
Fixes #50643.
Props swissspidy, kraftbj, donmhico.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50643#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list