Return false if we don't find the option.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a9aa2b0e8d
commit
03567e7d88
|
@ -271,6 +271,8 @@ function get_settings($setting) {
|
||||||
if( is_object( $value ) ) {
|
if( is_object( $value ) ) {
|
||||||
$value = $value->option_value;
|
$value = $value->option_value;
|
||||||
wp_cache_set($setting, $value, 'options');
|
wp_cache_set($setting, $value, 'options');
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue