Opened 17 months ago
Closed 17 months ago
#50515 closed defect (bug) (invalid)
redirect_sitemapxml should exit if wp_sitemaps_enabled is false
Reported by: | jonoaldersonwp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Sitemaps | Keywords: | close |
Focuses: | Cc: |
Description (last modified by )
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.
Change History (4)
Note: See
TracTickets for help on using
tickets.
As discussed on Slack, the
WP_Sitemaps
class (and thus this redirect handler) is only initialized whenwp_sitemaps_enabled
istrue
, so this seems like a non-issue to me.