[wp-trac] [WordPress Trac] #28099: Empty array passed to WP_Query post__in returns posts
WordPress Trac
noreply at wordpress.org
Tue Jun 10 17:58:29 UTC 2014
#28099: Empty array passed to WP_Query post__in returns posts
-----------------------------+-----------------------------
Reporter: danielbachhuber | Owner: wonderboymusic
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.0
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Comment (by sc0ttkclark):
Replying to [comment:14 pavelevap]:
> Another broken example: https://github.com/pods-
framework/pods/issues/2228
That's our problem, we're fixing it, but I still agree with the crux of
the this ticket, we were doing it wrong and the expectations of an empty
array should be to return nothing, because wouldn't want them to see
*everything*.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28099#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list