[wp-trac] [WordPress Trac] #55207: WP_Query returns published sticky posts when post_status is set to draft
WordPress Trac
noreply at wordpress.org
Tue Mar 8 05:57:09 UTC 2022
#55207: WP_Query returns published sticky posts when post_status is set to draft
--------------------------+---------------------
Reporter: NomNom99 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0
Component: Query | Version:
Severity: normal | Resolution:
Keywords: early | Focuses:
--------------------------+---------------------
Changes (by peterwilsoncc):
* keywords: => early
* version: 5.9 =>
* milestone: Awaiting Review => 6.0
Comment:
Replying to [comment:2 azouamauriac]:
> After some search, the code was introduced here [8546]/#7457, originally
called ''caller_get_posts'' and renamed ''ignore_sticky_posts'' here
[15589]/#14624
Thanks for digging in to the history.
The version tag applies to when the bug was introduced, as it looks like
this bug has been around prior to WP 5.9 I'll remove the version and
update it once I have done some additional checking.
Moving on to the 6.0 milestone for visibility. As this involves the
`WP_Query` class, I've also added the early keyword so any bug fix can be
well tested prior to release.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55207#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list