[wp-trac] [WordPress Trac] #62777: Force a 404 when no sitemap provider is found
WordPress Trac
noreply at wordpress.org
Sat Jan 17 10:16:40 UTC 2026
#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:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has- | Focuses:
screenshots |
-------------------------------------------------+-------------------------
Changes (by ozgursar):
* keywords: has-patch has-unit-tests needs-testing => has-patch has-unit-
tests has-screenshots
Comment:
== Test Report
=== Description
This report validates whether the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/8085
=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.29.4
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Chrome 143.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
* Classic Editor 1.6.7
* Test Reports 1.2.1
=== Steps to Reproduce
1. Settings > Permalinks > Choose Post name and Save Changes
2. Visit /wp-sitemap-foo-1.xml (E.g.: http://localhost:8889/wp-sitemap-
foo-1.xml)
3. 404 page is not displayed
4. Repeat the same for Plain to test /?sitemap=foo
=== Actual Results
1. ✅ Issue resolved with patch for /wp-sitemap-foo-1.xml
2. http://localhost:8889/wp-sitemap-foo-1.xml displays 404 page (When
permalink set to Post Name)
3. http://localhost:8889/?sitemap=foo displays 404 page (When permalink
set to Plain)
=== Additional Notes
- I tested both URLs with Permalinks set to Plain and Post name.
- I didn't test other Permalink scenarios.
=== Supplemental Artifacts
||= Before =||= After =||
|| [[Image(https://files.catbox.moe/zuwgns.png)]] ||
[[Image(https://files.catbox.moe/if0475.png)]] ||
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62777#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list