WordPress.org

Make WordPress Core

Changeset 27633


Ignore:
Timestamp:
03/20/2014 02:53:44 AM (4 years ago)
Author:
nacin
Message:

WP_Query: allow split_the_query = false to avoid a split.

see #26937.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r27511 r27633  
    32223222
    32233223        $split_the_query = ( $old_request == $this->request && "$wpdb->posts.*" == $fields && !empty( $limits ) && $q['posts_per_page'] < 500 );
     3224        if ( $split_the_query && isset( $q['split_the_query'] ) && empty( $q['split_the_query'] ) ) {
     3225            $split_the_query = false;
     3226        }
    32243227
    32253228        /**
Note: See TracChangeset for help on using the changeset viewer.