[wp-trac] [WordPress Trac] #55207: WP_Query returns published sticky posts when post_status is set to draft

WordPress Trac noreply at wordpress.org
Mon Mar 28 05:37:33 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:  Future Release
Component:  Query                |     Version:
 Severity:  normal               |  Resolution:
 Keywords:  early needs-refresh  |     Focuses:
---------------------------------+-----------------------------
Changes (by peterwilsoncc):

 * keywords:  early => early needs-refresh
 * milestone:  6.0 => Future Release


Comment:

 This was discussed during a bug scrub today.

 It was decided to take it off the 6.0 milestone to allow time to make a
 more considered decision around the two points that have been debated
 above:

 a) only post statuses of the type requested should be returned, or
 b) sticky posts are returned regardless of the query made,
 `ignore_sticky_posts` prevents that.

 As the ticket touches WP_Query, it's not possible to rush a decision on
 this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55207#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list