From ee22465376f1cf076d6a6b259fe76768e6619751 Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 4 Oct 2010 22:47:04 +0000 Subject: [PATCH] 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 --- wp-includes/classes.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index b23ea24987..27261ae8ca 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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' ) ) )