WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/01/2010 08:34:54 PM (11 years ago)
Author:
scribu
Message:

Just pass meta type to get_meta_sql(). See #15032

File:
1 edited

Legend:

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

    r16116 r16143  
    21472147
    21482148        if ( !empty( $q['meta_query'] ) ) {
    2149             $clauses = $this->get_meta_sql( $q['meta_query'], $wpdb->posts, 'ID', $wpdb->postmeta, 'post_id' );
     2149            $clauses = $this->get_meta_sql( $q['meta_query'], 'post', $wpdb->posts, 'ID' );
    21502150            $join .= $clauses['join'];
    21512151            $where .= $clauses['where'];
Note: See TracChangeset for help on using the changeset viewer.