diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 899c39c7b2..c0e6c2c3c1 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -637,7 +637,7 @@ function delete_option( $option ) { if ( ! defined( 'WP_INSTALLING' ) ) { if ( 'yes' == $row->autoload ) { $alloptions = wp_load_alloptions(); - if ( isset( $alloptions[$option] ) ) { + if ( is_array( $alloptions ) && isset( $alloptions[$option] ) ) { unset( $alloptions[$option] ); wp_cache_set( 'alloptions', $alloptions, 'options' ); }