mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
WP_Query: allow split_the_query = false to avoid a split.
see #26937. Built from https://develop.svn.wordpress.org/trunk@27633 git-svn-id: http://core.svn.wordpress.org/trunk@27476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e05fa407bf
commit
f75e5a023c
@ -3221,6 +3221,9 @@ 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.
|
||||
|
Loading…
Reference in New Issue
Block a user