mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Change how get_settings errors are returned.
git-svn-id: http://svn.automattic.com/wordpress/trunk@708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da2fc24f4d
commit
4ef7999064
@ -550,7 +550,7 @@ function get_settings($setting) {
|
|||||||
$settings = $cache_settings;
|
$settings = $cache_settings;
|
||||||
}
|
}
|
||||||
if (!isset($settings->$setting)) {
|
if (!isset($settings->$setting)) {
|
||||||
error_log("get_settings: Didn't find setting $setting");
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return $settings->$setting;
|
return $settings->$setting;
|
||||||
|
Loading…
Reference in New Issue
Block a user