Ticket #2712: query_post_filter_moved.diff
File query_post_filter_moved.diff, 739 bytes (added by , 18 years ago) |
---|
-
wp-includes/query.php
893 893 894 894 $this->posts = $wpdb->get_results($this->request); 895 895 896 $this->posts = apply_filters('the_posts', $this->posts); 897 896 898 // Check post status to determine if post should be displayed. 897 899 if ( !empty($this->posts) && ($this->is_single || $this->is_page) ) { 898 900 $status = get_post_status($this->posts[0]); … … 925 927 926 928 update_post_caches($this->posts); 927 929 928 $this->posts = apply_filters('the_posts', $this->posts);929 930 $this->post_count = count($this->posts); 930 931 if ($this->post_count > 0) { 931 932 $this->post = $this->posts[0];