[wp-trac] [WordPress Trac] #28099: Empty array passed to WP_Query post__in returns posts

WordPress Trac noreply at wordpress.org
Wed Jun 4 17:49:28 UTC 2014


#28099: Empty array passed to WP_Query post__in returns posts
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:  wonderboymusic
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  4.0
Component:  Query            |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+-----------------------------
Changes (by wonderboymusic):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28664"]:
 {{{
 #!CommitTicketReference repository="" revision="28664"
 After [28613], also kill queries that explicityly pass empty arrays to
 `category__in`, `tag__in`, `tag_slug__in`, and `author__in` to `WP_Query`.

 Adds unit tests.
 Fixes #28099.
 }}}

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


More information about the wp-trac mailing list