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