WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/09/2010 10:48:13 AM (10 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r15765 r15766  
    10821082        unset($this->query);
    10831083        $this->query_vars = array();
    1084         $this->meta_query = array();
    10851084        unset($this->queried_object);
    10861085        unset($this->queried_object_id);
     
    21152114        }
    21162115
    2117         list( $meta_join, $meta_where ) = $this->get_meta_sql( $wpdb->posts, 'ID', $wpdb->postmeta, 'post_id' );
     2116        list( $meta_join, $meta_where ) = $this->get_meta_sql( $q['meta_query'], $wpdb->posts, 'ID', $wpdb->postmeta, 'post_id' );
    21182117        $join .= $meta_join;
    21192118        $where .= $meta_where;
Note: See TracChangeset for help on using the changeset viewer.