Opened 6 years ago
Closed 6 years ago
#50515 closed defect (bug) (invalid)
redirect_sitemapxml should exit if wp_sitemaps_enabled is false
| Reported by: |
|
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_Sitemapsclass (and thus this redirect handler) is only initialized whenwp_sitemaps_enabledistrue, so this seems like a non-issue to me.