From 4fea95b6abdafc035e878e3c2823d5736a17d81a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 8 Jul 2013 01:49:13 +0000 Subject: [PATCH] Avoid an undefined index notice. props DrewAPicture. fixes #22096. git-svn-id: https://develop.svn.wordpress.org/trunk@24580 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/meta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index 976fd51ce9..49fd8c7b73 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -716,7 +716,7 @@ class WP_Meta_Query { // Split out the queries with empty arrays as value foreach ( $this->queries as $k => $q ) { - if ( is_array( $q['value'] ) && empty( $q['value'] ) ) { + if ( isset( $q['value'] ) && is_array( $q['value'] ) && empty( $q['value'] ) ) { $key_only_queries[$k] = $q; unset( $this->queries[$k] ); }