[wp-trac] [WordPress Trac] #27507: get_posts() not honoring post_status criteria

WordPress Trac noreply at wordpress.org
Wed Apr 23 17:12:40 UTC 2014


#27507: get_posts() not honoring post_status criteria
----------------------------------------+--------------------
 Reporter:  Denis-de-Bernardy           |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.0
Component:  Query                       |     Version:  3.8.1
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+--------------------
Changes (by wonderboymusic):

 * keywords:   => has-patch needs-unit-tests
 * focuses:  docs =>
 * milestone:  Awaiting Review => 4.0


Comment:

 `get_posts()` should be able to return publicly published posts without
 incident, we should probably fix this - [attachment:27507.diff 27507.diff]
 checks if `get_post_stati()` is empty, may need more checks since
 `get_posts()` works for attachments and might want `inherit`

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


More information about the wp-trac mailing list