[wp-trac] [WordPress Trac] #16825: Conflict var name in _get_meta_sql
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 10 17:06:13 UTC 2011
#16825: Conflict var name in _get_meta_sql
--------------------------+-----------------------------
Reporter: Rahe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.1
Severity: trivial | Keywords: has-patch
--------------------------+-----------------------------
Hi,
One of the parameters is overriden in this function ( $meta_type ) and is
returned in the filter.
{{{
function _get_meta_sql( $meta_query, $meta_type, $primary_table,
$primary_id_column, $context = null ) {
}}}
and overriden here :
{{{
$meta_type = isset( $q['type'] ) ? strtoupper( $q['type']
) : 'CHAR';
}}}
This bug is blocker when you use the filter :
{{{
return apply_filters_ref_array( 'get_meta_sql', array( compact(
'join', 'where' ), $meta_query, $meta_type, $primary_table,
$primary_id_column, &$context ) );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16825>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list