Avoid an undefined index notice. props DrewAPicture. fixes #22096.
git-svn-id: https://develop.svn.wordpress.org/trunk@24580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fbeed0e364
commit
4fea95b6ab
@ -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…
x
Reference in New Issue
Block a user