Ticket #20628: 20628.2.diff
File 20628.2.diff, 720 bytes (added by , 12 years ago) |
---|
-
wp-includes/query.php
2626 2626 return $r; 2627 2627 } 2628 2628 2629 $split_the_query = apply_filters( 'split_the_query', ( $old_request == $this->request && "$wpdb->posts.*" == $fields && !empty( $limits) ), $this ); 2629 $split_the_query = ( $old_request == $this->request && "$wpdb->posts.*" == $fields && !empty( $limits ) && preg_replace( '/LIMIT ([0-9]+,)*/i', '', $limits ) < 500 ); 2630 $split_the_query = apply_filters( 'split_the_query', $split_the_query, $this ); 2630 2631 2631 2632 if ( $split_the_query ) { 2632 2633 // First get the IDs and then fill in the objects