Ticket #16829: meta_compare.diff
File meta_compare.diff, 664 bytes (added by , 14 years ago) |
---|
-
meta.php
389 389 $meta_key = isset( $q['key'] ) ? trim( $q['key'] ) : ''; 390 390 $meta_value = isset( $q['value'] ) ? $q['value'] : ''; 391 391 $meta_compare = isset( $q['compare'] ) ? strtoupper( $q['compare'] ) : '='; 392 $meta_compare = ( !isset( $q['compare'] ) && is_array( $meta_value ) ) ? 'IN' : '='; 392 393 $meta_type = isset( $q['type'] ) ? strtoupper( $q['type'] ) : 'CHAR'; 393 394 394 395 if ( ! in_array( $meta_compare, array( '=', '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' ) ) )