mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Preserve the original query object as wp_the_query so that it's not stomped by subsequent calls to query_posts().
git-svn-id: https://develop.svn.wordpress.org/trunk@4460 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+4
-3
@@ -226,9 +226,10 @@ $_SERVER = add_magic_quotes($_SERVER);
|
||||
|
||||
do_action('sanitize_comment_cookies');
|
||||
|
||||
$wp_query = new WP_Query();
|
||||
$wp_rewrite = new WP_Rewrite();
|
||||
$wp = new WP();
|
||||
$wp_the_query =& new WP_Query();
|
||||
$wp_query =& $wp_the_query;
|
||||
$wp_rewrite =& new WP_Rewrite();
|
||||
$wp =& new WP();
|
||||
|
||||
validate_current_theme();
|
||||
define('TEMPLATEPATH', get_template_directory());
|
||||
|
||||
Reference in New Issue
Block a user