[wp-trac] [WordPress Trac] #51117: Sitemap & XSL requests execute main query for home page.
WordPress Trac
noreply at wordpress.org
Tue Mar 3 10:38:47 UTC 2026
#51117: Sitemap & XSL requests execute main query for home page.
---------------------------+------------------------------
Reporter: peterwilsoncc | Owner: pbiron
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: Awaiting Review
Component: Sitemaps | Version: 5.5
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
---------------------------+------------------------------
Comment (by oglekler):
I switched off the users sitemap via the 'wp_sitemaps_add_provider' filter
and was expecting to get a 404 on /wp-sitemap-users-1.xml but got a list
of blog posts with code 200. For /wp-sitemap-users-2.xml I got a 404 page,
which isn't ideal also because it loads the whole system. I assume I will
also get 200 on /wp-sitemap-users-1.xml if I have more than 10 posts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51117#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list