Ticket #42860: 42860-1.2.patch
File 42860-1.2.patch, 539 bytes (added by , 7 years ago) |
---|
-
src/wp-includes/class-wp-query.php
3158 3158 */ 3159 3159 $this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) ); 3160 3160 } else { 3161 $this->found_posts = count( $this->posts );3161 $this->found_posts = is_array( $this->posts ) ? count( $this->posts ) : 0; 3162 3162 } 3163 3163 3164 3164 /**