Don't revalidate $meta_type in get_meta_sql(). Props Viper007Bond. See #9124

git-svn-id: http://svn.automattic.com/wordpress/trunk@15726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-10-04 22:51:31 +00:00
parent be24b1998b
commit 62176cc636
1 changed files with 1 additions and 2 deletions

View File

@ -600,8 +600,7 @@ class WP_Object_Query {
$meta_type = 'CHAR';
elseif ( 'NUMERIC' == $meta_type )
$meta_type = 'SIGNED';
if ( !in_array( $meta_type, array( 'BINARY', 'CHAR', 'DATE', 'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', 'UNSIGNED' ) ) )
elseif ( !in_array( $meta_type, array( 'BINARY', 'CHAR', 'DATE', 'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', 'UNSIGNED' ) ) )
$meta_type = 'CHAR';
if ( empty( $meta_key ) && empty( $meta_value ) )