Changeset 21559 for trunk/wp-includes/query.php
- Timestamp:
- 08/20/2012 07:47:52 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r21248 r21559 2644 2644 if ( $ids ) { 2645 2645 $this->set_found_posts( $q, $limits ); 2646 2647 2646 _prime_post_caches( $ids, $q['update_post_term_cache'], $q['update_post_meta_cache'] ); 2648 2649 $this->posts = array_map( 'get_post', $ids ); 2647 $this->posts = $ids; 2650 2648 } else { 2649 $this->posts = array(); 2651 2650 $this->found_posts = $this->max_num_pages = 0; 2652 $this->posts = array();2653 2651 } 2654 2652 } else { … … 2656 2654 $this->set_found_posts( $q, $limits ); 2657 2655 } 2656 2657 // Convert to WP_Post objects 2658 $this->posts = array_map( 'get_post', $this->posts ); 2658 2659 2659 2660 // Raw results filter. Prior to status checks.
Note: See TracChangeset
for help on using the changeset viewer.