Ticket #42469: 42130.patch
File 42130.patch, 746 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/class-wp-query.php
3030 3030 * @param string $found_posts The query to run to find the found posts. 3031 3031 * @param WP_Query $this The WP_Query instance (passed by reference). 3032 3032 */ 3033 $this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this) ) );3033 $this->found_posts = intval( $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) ) ); 3034 3034 } else { 3035 3035 $this->found_posts = count( $this->posts ); 3036 3036 }