[wp-trac] [WordPress Trac] #28099: Empty array passed to WP_Query post__in returns posts
WordPress Trac
noreply at wordpress.org
Tue Jun 17 09:22:45 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 kovshenin):
I think Jetpack's infinite scroll breakage is related to this. See:
https://github.com/Automattic/jetpack/issues/685
Infinite scroll is trying to build off of the original query so it's using
the `$wp_the_query->query_vars` array, where `post__in` is set to an empty
array by `fill_query_vars()`. Jetpack is assuming that the results in
`$wp_the_query` were retrieved using `$wp_the_query->query_vars` which I
think is a fair assumption, even though Jetpack could probably build the
query off of `$wp_the_query->query` instead.
My vote is to revert this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28099#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list