WordPress/wp-includes/sitemaps
whyisjake 7f92797960 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.


Built from https://develop.svn.wordpress.org/trunk@48523


git-svn-id: http://core.svn.wordpress.org/trunk@48285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-21 00:57:05 +00:00
..
providers Sitemaps: Ensure entry for ‘page’ post type sitemap in index. 2020-07-14 12:26:02 +00:00
class-wp-sitemaps-index.php Sitemaps: Pass full paths to home_url() calls. 2020-07-14 11:43:03 +00:00
class-wp-sitemaps-provider.php Sitemaps: Pass full paths to home_url() calls. 2020-07-14 11:43:03 +00:00
class-wp-sitemaps-registry.php Docs: Corrections and improvements to inline docs related to XML sitemaps. 2020-06-19 22:26:10 +00:00
class-wp-sitemaps-renderer.php Sitemaps: Pass full paths to home_url() calls. 2020-07-14 11:43:03 +00:00
class-wp-sitemaps-stylesheet.php Sitemaps: Add wrapping <div> around sitemap in stylesheet. 2020-07-14 11:45:03 +00:00
class-wp-sitemaps.php Sitemaps: Ensure correct HTTP status when sitemaps are disabled 2020-07-21 00:57:05 +00:00