Ticket #20628: 20628.diff
File 20628.diff, 674 bytes (added by , 13 years ago) |
---|
-
wp-includes/query.php
2626 2626 return $r; 2627 2627 } 2628 2628 2629 if ( $old_request == $this->request && "$wpdb->posts.*" == $fields ) { 2629 $split_the_query = apply_filters( 'split_the_query', ( $old_request == $this->request && "$wpdb->posts.*" == $fields && !empty( $limits) ), $this ); 2630 2631 if ( $split_the_query ) { 2630 2632 // First get the IDs and then fill in the objects 2631 2633 2632 2634 $this->request = "SELECT $found_rows $distinct $wpdb->posts.ID FROM $wpdb->posts $join WHERE 1=1 $where $groupby $orderby $limits";