WordPress.org

Make WordPress Core

Changeset 24580


Ignore:
Timestamp:
07/08/13 01:49:13 (10 months ago)
Author:
SergeyBiryukov
Message:

Avoid an undefined index notice. props DrewAPicture. fixes #22096.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/meta.php

    r24563 r24580  
    717717        // Split out the queries with empty arrays as value 
    718718        foreach ( $this->queries as $k => $q ) { 
    719             if ( is_array( $q['value'] ) && empty( $q['value'] ) ) { 
     719            if ( isset( $q['value'] ) && is_array( $q['value'] ) && empty( $q['value'] ) ) { 
    720720                $key_only_queries[$k] = $q; 
    721721                unset( $this->queries[$k] ); 
Note: See TracChangeset for help on using the changeset viewer.