WP_Query: allow split_the_query = false to avoid a split.
see #26937. git-svn-id: https://develop.svn.wordpress.org/trunk@27633 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9bac9f66d9
commit
5a49e9f4bf
@ -3221,6 +3221,9 @@ class WP_Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$split_the_query = ( $old_request == $this->request && "$wpdb->posts.*" == $fields && !empty( $limits ) && $q['posts_per_page'] < 500 );
|
$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.
|
* Filter whether to split the query.
|
||||||
|
Loading…
Reference in New Issue
Block a user