Don't loop over empty options. fixes #1900
git-svn-id: https://develop.svn.wordpress.org/trunk@3138 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
751c08fd49
commit
c6c21c0d26
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue