[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 Feb 21 07:42:24 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:  Awaiting Review
Component:  Query         |     Version:  5.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by hilayt24):

 Hi @NomNom99, I also faced the same issue in my recent projects. but after
 some research, I came to know that the sticky post is returned irrelevant
 to the status of the post or fired query.


 Though you are right regarding adding the note to the documentation.

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


More information about the wp-trac mailing list