[wp-trac] [WordPress Trac] #38709: Unlimited query for invalid post names
WordPress Trac
noreply at wordpress.org
Thu Feb 1 22:09:35 UTC 2024
#38709: Unlimited query for invalid post names
--------------------------+-----------------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 4.6.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
--------------------------+-----------------------------
Changes (by Khadreal):
* Attachment "core.2.patch" added.
The patch suggested by @rebasaurus remove the query but doesn't resolve
the issue as draft post still shows up. I set `is_singular` to false when
the query name is empty and it's singular and not a preview. PS. My last
two comments were mistake and I couldn't delete
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38709>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list