Changeset 48328 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 07/05/2020 09:32:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r48114 r48328 3236 3236 * @since 2.1.0 3237 3237 * 3238 * @param string $found_posts The query to run to find the found posts.3239 * @param WP_Query $this The WP_Query instance (passed by reference).3238 * @param string $found_posts_query The query to run to find the found posts. 3239 * @param WP_Query $this The WP_Query instance (passed by reference). 3240 3240 */ 3241 $this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) ); 3241 $found_posts_query = apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ); 3242 3243 $this->found_posts = (int) $wpdb->get_var( $found_posts_query ); 3242 3244 } else { 3243 3245 if ( is_array( $this->posts ) ) { … … 3260 3262 * @param WP_Query $this The WP_Query instance (passed by reference). 3261 3263 */ 3262 $this->found_posts = apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) );3264 $this->found_posts = (int) apply_filters_ref_array( 'found_posts', array( $this->found_posts, &$this ) ); 3263 3265 3264 3266 if ( ! empty( $limits ) ) {
Note: See TracChangeset
for help on using the changeset viewer.