diff --git wp-includes/query.php wp-includes/query.php
index 60228db..4de0388 100644
|
|
|
function set_query_var($var, $value) { |
| 87 | 87 | * @return array List of posts |
| 88 | 88 | */ |
| 89 | 89 | function query_posts($query) { |
| 90 | | unset($GLOBALS['wp_query']); |
| 91 | 90 | $GLOBALS['wp_query'] = new WP_Query(); |
| 92 | 91 | return $GLOBALS['wp_query']->query($query); |
| 93 | 92 | } |
| … |
… |
function query_posts($query) { |
| 103 | 102 | * @uses $wp_query |
| 104 | 103 | */ |
| 105 | 104 | function wp_reset_query() { |
| 106 | | unset($GLOBALS['wp_query']); |
| 107 | 105 | $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; |
| 108 | 106 | wp_reset_postdata(); |
| 109 | 107 | } |
diff --git wp-settings.php wp-settings.php
index 470ed9a..ac331c2 100644
|
|
|
$wp_the_query = new WP_Query(); |
| 233 | 233 | * @global object $wp_query |
| 234 | 234 | * @since 1.5.0 |
| 235 | 235 | */ |
| 236 | | $wp_query =& $wp_the_query; |
| | 236 | $wp_query = $wp_the_query; |
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | 239 | * Holds the WordPress Rewrite object for creating pretty URLs |