mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 13:14:29 +00:00
Pass remember arg. see #5405
git-svn-id: https://develop.svn.wordpress.org/trunk@6644 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -25,6 +25,11 @@ function &query_posts($query) {
|
||||
function wp_reset_query() {
|
||||
unset($GLOBALS['wp_query']);
|
||||
$GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
|
||||
global $wp_query;
|
||||
if ( !empty($wp_query->post) ) {
|
||||
$GLOBALS['post'] = $wp_query->post;
|
||||
setup_postdata($wp_query->post);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user