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:
parent
dd7370dbe9
commit
c52e264fde
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue