Make WordPress Core


Ignore:
Timestamp:
11/11/2010 10:06:05 AM (14 years ago)
Author:
scribu
Message:

Add context to get_meta_sql(). See #15018

File:
1 edited

Legend:

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

    r16276 r16286  
    21482148
    21492149        if ( !empty( $q['meta_query'] ) ) {
    2150             $clauses = get_meta_sql( $q['meta_query'], 'post', $wpdb->posts, 'ID' );
     2150            $clauses = call_user_func_array( 'get_meta_sql', array( $q['meta_query'], 'post', $wpdb->posts, 'ID', &$this) );
    21512151            $join .= $clauses['join'];
    21522152            $where .= $clauses['where'];
Note: See TracChangeset for help on using the changeset viewer.