mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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
|
||||
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] );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user