[wp-trac] [WordPress Trac] #51117: Sitemap & XSL requests execute main query for home page.
WordPress Trac
noreply at wordpress.org
Mon Apr 24 16:16:41 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: needs-patch | Focuses: performance
---------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: => needs-patch
Comment:
Replying to [comment:7 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()`.
Makes sense to me 👍
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51117#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list