From 5bfe6fa2b1c509ad713e2db296e4961c2769e79d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 16 Feb 2011 16:25:52 +0000 Subject: [PATCH] Use ->query instead of . Always kick off the parse_query action. fixes #16545 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@17455 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 6755f7f6c6..0f394f0fa1 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1570,7 +1570,7 @@ class WP_Query { // Correct is_* for page_on_front and page_for_posts if ( $this->is_home && 'page' == get_option('show_on_front') && get_option('page_on_front') ) { - $_query = wp_parse_args($query); + $_query = wp_parse_args($this->query); // pagename can be set and empty depending on matched rewrite rules. Ignore an empty pagename. if ( isset($_query['pagename']) && '' == $_query['pagename'] ) unset($_query['pagename']); @@ -1627,8 +1627,7 @@ class WP_Query { if ( '404' == $qv['error'] ) $this->set_404(); - if ( !empty($query) ) - do_action_ref_array('parse_query', array(&$this)); + do_action_ref_array('parse_query', array(&$this)); } /*