Avoid an undefined index notice. props DrewAPicture. fixes #22096.
git-svn-id: http://core.svn.wordpress.org/trunk@24580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65f9f1710b
commit
6c89e06a2a
|
@ -716,7 +716,7 @@ class WP_Meta_Query {
|
||||||
|
|
||||||
// Split out the queries with empty arrays as value
|
// Split out the queries with empty arrays as value
|
||||||
foreach ( $this->queries as $k => $q ) {
|
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;
|
$key_only_queries[$k] = $q;
|
||||||
unset( $this->queries[$k] );
|
unset( $this->queries[$k] );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue