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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-10-04 22:47:04 +00:00
parent 390ec67a52
commit be24b1998b
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' ) ) )