diff --git a/includes/theme.inc b/includes/theme.inc
index 3ae5000..84108c0 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1133,7 +1133,7 @@ function drupal_find_theme_templates($cache, $extension, $path) {
  * @return
  *   The value of the requested setting, NULL if the setting does not exist.
  */
-function theme_get_setting($setting_name, $theme = NULL) {
+function theme_get_setting($setting_name, $theme = NULL, $default = NULL) {
   $cache = &drupal_static(__FUNCTION__, array());
 
   // If no key is given, use the current theme if we can determine it.
@@ -1227,7 +1227,7 @@ function theme_get_setting($setting_name, $theme = NULL) {
     }
   }
 
-  return isset($cache[$theme][$setting_name]) ? $cache[$theme][$setting_name] : NULL;
+  return isset($cache[$theme][$setting_name]) ? $cache[$theme][$setting_name] : $default;
 }
 
 /**
