[wp-trac] [WordPress Trac] #62777: Force a 404 when no sitemap provider is found
WordPress Trac
noreply at wordpress.org
Fri Jan 3 13:45:10 UTC 2025
#62777: Force a 404 when no sitemap provider is found
---------------------------+-----------------------------
Reporter: romainmrhenry | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Currently WordPress does not force a 404 when no sitemap provider is found
and instead continues down the regular template hierarchy.
This can be tested with:
- /wp-sitemap-foo-1.xml
- ?sitemap=foo
Where `foo` is not a registered provider.
I would expect a 404 when the url matches the sitemap url patterns but no
provider is gound.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62777>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list