Use elseif in get_meta_sql(). Props Viper007Bond. See #9124

git-svn-id: https://develop.svn.wordpress.org/trunk@15725 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-10-04 22:47:04 +00:00
parent 4685506671
commit ee22465376
1 changed files with 1 additions and 2 deletions

View File

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