WordPress.org

Make WordPress Core


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

Add context to get_meta_sql(). See #15018

File:
1 edited

Legend:

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

    r16266 r16286  
    370370 * @param string $primary_table
    371371 * @param string $primary_id_column
     372 * @param object $context (optional) The main query object
    372373 * @return array( 'join' => $join_sql, 'where' => $where_sql )
    373374 */
    374 function get_meta_sql( $meta_query, $meta_type, $primary_table, $primary_id_column ) {
     375function get_meta_sql( $meta_query, $meta_type, $primary_table, $primary_id_column, $context = null ) {
    375376    global $wpdb;
    376377
     
    441442    }
    442443
    443     return apply_filters( 'get_meta_sql', compact( 'join', 'where' ), $meta_query, $meta_type, $primary_table, $primary_id_column );
     444    return apply_filters_ref_array( 'get_meta_sql', array( compact( 'join', 'where' ), $meta_query, $meta_type, $primary_table, $primary_id_column, &$context ) );
    444445}
    445446
Note: See TracChangeset for help on using the changeset viewer.