Ticket #14426: 14426.diff
| File 14426.diff, 588 bytes (added by , 13 years ago) |
|---|
-
wp-includes/query.php
2799 2799 function set_found_posts( $q, $limits ) { 2800 2800 global $wpdb; 2801 2801 2802 if ( $q['no_found_rows'] || ! $this->posts ) 2802 // Bail if posts is an empty array. Continue if posts is an empty string 2803 // null, or false to accommodate caching plugins that fill posts later. 2804 if ( $q['no_found_rows'] || ( is_array( $this->posts ) && ! $this->posts ) ) 2803 2805 return; 2804 2806 2805 2807 if ( ! empty( $limits ) )