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

git-svn-id: https://develop.svn.wordpress.org/trunk@15726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-10-04 22:51:31 +00:00
parent ee22465376
commit 73261c879f
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 ) )