diff --git wp-includes/meta.php wp-includes/meta.php
index 8a9dad9..d3e4f82 100644
|
|
class WP_Meta_Query { |
708 | 708 | // Split out the meta_key only queries (we can only do this for OR) |
709 | 709 | if ( 'OR' == $this->relation ) { |
710 | 710 | foreach ( $this->queries as $k => $q ) { |
711 | | if ( ! isset( $q['value'] ) && ! empty( $q['key'] ) ) |
| 711 | if ( ( empty( $q['compare'] ) || 'NOT EXISTS' != $q['compare'] ) && ! isset( $q['value'] ) && ! empty( $q['key'] ) ) |
712 | 712 | $key_only_queries[$k] = $q; |
713 | 713 | else |
714 | 714 | $queries[$k] = $q; |