Closed jonoalderson closed 4 years ago
When XML sitemaps are disabled via wp_sitemaps_enabled, redirect_sitemapxml still runs and redirects requests from /sitemap.xml to /wp-sitemap.xml.
wp_sitemaps_enabled
redirect_sitemapxml
/sitemap.xml
/wp-sitemap.xml
This is unintended behaviour; if the sitemaps are disabled, this redirect should be disabled.
Moving to Trac
When XML sitemaps are disabled via
wp_sitemaps_enabled
,redirect_sitemapxml
still runs and redirects requests from/sitemap.xml
to/wp-sitemap.xml
.This is unintended behaviour; if the sitemaps are disabled, this redirect should be disabled.