Don't loop over empty options. fixes #1900
git-svn-id: http://svn.automattic.com/wordpress/trunk@3138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e6425a4127
commit
f237c0bf41
|
@ -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