Ticket #22061: empty-this-posts.diff
| File empty-this-posts.diff, 915 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 if ( $this->post_count > 0 ) { 2778 // Always sanitize 2779 foreach ( $this->posts as $i => $post ) { 2780 $this->posts[$i] = sanitize_post( $post, 'raw' ); 2781 } 2781 2782 2782 if ( $q['cache_results'] ) 2783 update_post_caches($this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache']); 2784 2785 if ( $this->post_count > 0 ) { 2783 if ( $q['cache_results'] ) 2784 update_post_caches($this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache']); 2785 2786 2786 $this->post = $this->posts[0]; 2787 2787 } 2788 2788
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)