[wp-trac] [WordPress Trac] #36687: Feature to override WP_Query to provide results from other source
WordPress Trac
noreply at wordpress.org
Thu Jun 16 02:00:06 UTC 2016
#36687: Feature to override WP_Query to provide results from other source
-----------------------------+--------------------------
Reporter: jpdavoutian | Owner: jpdavoutian
Type: feature request | Status: closed
Priority: normal | Milestone: 4.6
Component: Query | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-----------------------------+--------------------------
Changes (by boonebgorges):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"37721"]:
{{{
#!CommitTicketReference repository="" revision="37721"
Query: `set_found_posts()` must run immediately after main query.
If not run immediately after, the `SELECT FOUND_ROWS()` query might refer
to
a different query, such as the one used to populate the post cache for a
split
query.
Introduced in [37692].
Fixes #36687.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36687#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list