Ticket #22162: 22162.diff
| File 22162.diff, 783 bytes (added by , 13 years ago) |
|---|
-
wp-includes/query.php
2769 2769 } 2770 2770 } 2771 2771 2772 if ( !$q['suppress_filters'] ) 2772 $this->post_count = count( $this->posts ); 2773 2774 if ( ! $q['suppress_filters'] ) { 2773 2775 $this->posts = apply_filters_ref_array('the_posts', array( $this->posts, &$this ) ); 2776 $post_count = count( $this->posts ); 2777 if ( $post_count != $this->post_count ) 2778 $this->posts = array_map( 'get_post', $this->posts ); 2779 $this->post_count = $post_count; 2780 } 2774 2781 2775 $this->post_count = count( $this->posts );2776 2777 2782 // Always sanitize 2778 2783 foreach ( $this->posts as $i => $post ) { 2779 2784 $this->posts[$i] = sanitize_post( $post, 'raw' );