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
This commit is contained in:
ryan 2008-01-29 23:58:41 +00:00
parent dd7370dbe9
commit c52e264fde
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}