diff --git a/wp-includes/cache.php b/wp-includes/cache.php index f4958c0885..67d8d3ada4 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -184,6 +184,9 @@ class WP_Object_Cache { } $wpdb->show_errors(); + if ( ! $options ) + return; + foreach ($options as $option) { $this->cache['options'][$option->option_name] = $option->option_value; }