Changeset 18825
- Timestamp:
- 09/29/2011 10:10:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/meta.php
r18816 r18825 710 710 foreach ( $this->queries as $k => $q ) { 711 711 $meta_key = isset( $q['key'] ) ? trim( $q['key'] ) : ''; 712 $meta_compare = isset( $q['compare'] ) ? strtoupper( $q['compare'] ) : '=';713 712 $meta_type = isset( $q['type'] ) ? strtoupper( $q['type'] ) : 'CHAR'; 714 715 if ( ! in_array( $meta_compare, array( '=', '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' ) ) )716 $meta_compare = '=';717 713 718 714 if ( 'NUMERIC' == $meta_type ) … … 740 736 741 737 $meta_value = $q['value']; 738 739 $meta_compare = is_array( $meta_value ) ? 'IN' : '='; 740 if ( isset( $q['compare'] ) ) 741 $meta_compare = strtoupper( $q['compare'] ); 742 743 if ( ! in_array( $meta_compare, array( '=', '!=', '>', '>=', '<', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' ) ) ) 744 $meta_compare = '='; 742 745 743 746 if ( in_array( $meta_compare, array( 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN' ) ) ) {
Note: See TracChangeset
for help on using the changeset viewer.