WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/04/2010 10:51:31 PM (11 years ago)
Author:
scribu
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r15725 r15726  
    601601            elseif ( 'NUMERIC' == $meta_type )
    602602                $meta_type = 'SIGNED';
    603 
    604             if ( !in_array( $meta_type, array( 'BINARY', 'CHAR', 'DATE', 'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', 'UNSIGNED' ) ) )
     603            elseif ( !in_array( $meta_type, array( 'BINARY', 'CHAR', 'DATE', 'DATETIME', 'DECIMAL', 'SIGNED', 'TIME', 'UNSIGNED' ) ) )
    605604                $meta_type = 'CHAR';
    606605
Note: See TracChangeset for help on using the changeset viewer.