[wp-trac] [WordPress Trac] #38709: Unlimited query for invalid post names

WordPress Trac noreply at wordpress.org
Wed Jan 31 15:42:14 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 "query.patch" added.

 The patch suggested by @rebasaurus remove the query but doesn't resolve
 the issue as draft post still shows up.  Forcing a limit when it's
 singular and sanitize the input kind of do the trick and resolve it.

-- 
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