From c52e264fde49a3ecf3fb2b18768c03c240c62c6a Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 29 Jan 2008 23:58:41 +0000 Subject: [PATCH] Don't advance post counter when resetting query. see #5439 git-svn-id: http://svn.automattic.com/wordpress/trunk@6688 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 32ff5c530..a3bf92bcd 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -27,7 +27,7 @@ function wp_reset_query() { $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query']; global $wp_query; if ( !empty($wp_query->post) ) { - $GLOBALS['post'] = $wp_query->next_post(); + $GLOBALS['post'] = $wp_query->post; setup_postdata($wp_query->post); } }