Changeset 42581 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 01/24/2018 01:20:24 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r42343 r42581 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 if ( is_array( $this->posts ) ) { 3162 $this->found_posts = count( $this->posts ); 3163 } else { 3164 if ( null === $this->posts ) { 3165 $this->found_posts = 0; 3166 } else { 3167 $this->found_posts = 1; 3168 } 3169 } 3162 3170 } 3163 3171
Note: See TracChangeset
for help on using the changeset viewer.