Ticket #22162: 22162.3.diff
| File 22162.3.diff, 699 bytes (added by , 14 years ago) |
|---|
-
wp-includes/query.php
2774 2774 2775 2775 $this->post_count = count( $this->posts ); 2776 2776 2777 // Always sanitize 2778 foreach ( $this->posts as $i => $post ) { 2779 $this->posts[$i] = sanitize_post( $post, 'raw' ); 2780 } 2777 // Ensure that any posts added/modified via one of the filters above are 2778 // of the type WP_Post and are filtered. 2779 $this->posts = array_map( 'get_post', $this->posts ); 2781 2780 2782 2781 if ( $q['cache_results'] ) 2783 2782 update_post_caches($this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache']);