Changeset 24563
- Timestamp:
- 07/05/2013 04:40:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/meta.php
r24490 r24563 679 679 680 680 // WP_Query sets 'meta_value' = '' by default 681 if ( isset( $qv[ 'meta_value' ] ) && '' !== $qv[ 'meta_value' ] )681 if ( isset( $qv[ 'meta_value' ] ) && '' !== $qv[ 'meta_value' ] && ( ! is_array( $qv[ 'meta_value' ] ) || $qv[ 'meta_value' ] ) ) 682 682 $meta_query[0]['value'] = $qv[ 'meta_value' ]; 683 683 … … 715 715 $queries = array(); 716 716 717 // Split out the queries with empty arrays as value 718 foreach ( $this->queries as $k => $q ) { 719 if ( is_array( $q['value'] ) && empty( $q['value'] ) ) { 720 $key_only_queries[$k] = $q; 721 unset( $this->queries[$k] ); 722 } 723 } 724 717 725 // Split out the meta_key only queries (we can only do this for OR) 718 726 if ( 'OR' == $this->relation ) {
Note: See TracChangeset
for help on using the changeset viewer.