WordPress.org

Make WordPress Core

Changeset 14330


Ignore:
Timestamp:
05/02/10 06:02:54 (5 years ago)
Author:
markjaquith
Message:

Make sure alloptions is an array before we try to use unset() on its alleged key

File:
1 edited

Legend:

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

    r14211 r14330  
    638638        if ( 'yes' == $row->autoload ) { 
    639639            $alloptions = wp_load_alloptions(); 
    640             if ( isset( $alloptions[$option] ) ) { 
     640            if ( is_array( $alloptions ) && isset( $alloptions[$option] ) ) { 
    641641                unset( $alloptions[$option] ); 
    642642                wp_cache_set( 'alloptions', $alloptions, 'options' ); 
Note: See TracChangeset for help on using the changeset viewer.