Ticket #6769: 6769.diff
File 6769.diff, 547 bytes (added by , 17 years ago) |
---|
-
wp-includes/query.php
1530 1530 function have_posts() { 1531 1531 if ($this->current_post + 1 < $this->post_count) { 1532 1532 return true; 1533 } elseif ($this->current_post + 1 == $this->post_count ) {1533 } elseif ($this->current_post + 1 == $this->post_count && $this->post_count > 0) { 1534 1534 do_action('loop_end'); 1535 1535 // Do some cleaning up after the loop 1536 1536 $this->rewind_posts();