Add rewind_posts().
git-svn-id: http://svn.automattic.com/wordpress/trunk@2026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -578,6 +578,13 @@ class WP_Query {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function rewind_posts() {
|
||||
$this->current_post = -1;
|
||||
if ($this->post_count > 0) {
|
||||
$this->post = $this->posts[0];
|
||||
}
|
||||
}
|
||||
|
||||
function query($query) {
|
||||
$this->parse_query($query);
|
||||
|
||||
Reference in New Issue
Block a user