[wp-trac] [WordPress Trac] #29167: WP_Query bug when querying trashed post

WordPress Trac noreply at wordpress.org
Sun Feb 1 20:25:45 UTC 2015


#29167: WP_Query bug when querying trashed post
--------------------------+---------------------------
 Reporter:  ebinnion      |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2
Component:  Query         |     Version:  3.8
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31321"]:
 {{{
 #!CommitTicketReference repository="" revision="31321"
 When querying for a specific post, allow posts with a non-public status to
 be returned as long as that status is specified.

 This makes it possible to, for example, retrieve a specific post using the
 `p` parameter of `WP_Query`, even if the post is in the Trash, by
 including
 the `post_status=trash` parameter.

 Props ebinnion.
 Fixes #29167.
 }}}

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


More information about the wp-trac mailing list