Ticket #10156: 10156.diff
| File 10156.diff, 703 bytes (added by , 15 years ago) |
|---|
-
wp-includes/query.php
2789 2789 * @return bool True if posts are available, false if end of loop. 2790 2790 */ 2791 2791 function have_posts() { 2792 if($this->empty){ 2793 return false; 2794 } 2792 2795 if ( $this->current_post + 1 < $this->post_count ) { 2793 2796 return true; 2794 2797 } elseif ( $this->current_post + 1 == $this->post_count && $this->post_count > 0 ) { … … 2980 2983 function WP_Query($query = '') { 2981 2984 if ( ! empty($query) ) { 2982 2985 $this->query($query); 2986 $this->empty = false; 2983 2987 } 2988 else{ 2989 $this->empty = true; 2990 } 2984 2991 } 2985 2992 2986 2993 /**