Revert the conversion of adjacent post queries to WP_Query. Explanation on the ticket.
Reverts [27285], [27286], [27287], [27288], [27291], [27292], [27293], [27296], [27633], [27634], [27635], and [27692]. see #26937. Built from https://develop.svn.wordpress.org/trunk@27836 git-svn-id: http://core.svn.wordpress.org/trunk@27670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3221,9 +3221,6 @@ class WP_Query {
|
||||
}
|
||||
|
||||
$split_the_query = ( $old_request == $this->request && "$wpdb->posts.*" == $fields && !empty( $limits ) && $q['posts_per_page'] < 500 );
|
||||
if ( $split_the_query && isset( $q['split_the_query'] ) && empty( $q['split_the_query'] ) ) {
|
||||
$split_the_query = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter whether to split the query.
|
||||
|
||||
Reference in New Issue
Block a user