[wp-trac] [WordPress Trac] #51117: Sitemap & XSL requests execute main query for home page.
WordPress Trac
noreply at wordpress.org
Mon Apr 24 08:10:50 UTC 2023
#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: | Focuses: performance
---------------------------+------------------------------
Comment (by Cybr):
I expect class `WP_Query` to have an `$is_sitemap` property just like it
has `$is_robots` and `$is_favicon`.
That parameter needs to be tested against before setting `is_home` to
`true` in method `WP_Query::parse_query()`.
With this ticket resolved, we can undo the patch [53548].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51117#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list