Get rid of redundant $this->meta_query. See #14645

git-svn-id: https://develop.svn.wordpress.org/trunk@15766 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-10-09 10:48:13 +00:00
parent c4a14ee8d9
commit a3ee8cac1a
3 changed files with 35 additions and 47 deletions
+1 -2
View File
@@ -1081,7 +1081,6 @@ class WP_Query extends WP_Object_Query {
unset($this->posts);
unset($this->query);
$this->query_vars = array();
$this->meta_query = array();
unset($this->queried_object);
unset($this->queried_object_id);
$this->post_count = 0;
@@ -2114,7 +2113,7 @@ class WP_Query extends WP_Object_Query {
$where .= ')';
}
list( $meta_join, $meta_where ) = $this->get_meta_sql( $wpdb->posts, 'ID', $wpdb->postmeta, 'post_id' );
list( $meta_join, $meta_where ) = $this->get_meta_sql( $q['meta_query'], $wpdb->posts, 'ID', $wpdb->postmeta, 'post_id' );
$join .= $meta_join;
$where .= $meta_where;