diff -u b/core/includes/theme.inc b/core/includes/theme.inc --- b/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1302,21 +1302,25 @@ $config = config('system.theme.global'); // Provide defaults as function is used before config installed. $default_config = array( - 'favicon' => array('use_default' => 1), - 'features' => array( - 'comment_user_picture' => 1, - 'comment_user_verification' => 1, - 'favicon' => 1, - 'logo' => 1, - 'name' => 1, - 'node_user_picture' => 1, - 'main_menu' => 1, - 'secondary_menu' => 1, - 'slogan' => 1, + 'favicon' => array( + 'path' => '', + // Use the IANA-registered MIME type for ICO files as default. + 'mimetype' => 'image/vnd.microsoft.icon', + 'use_default' => 1, + ), + 'features' => array(), + 'logo' => array( + 'path' => '', + 'use_default' => 1, ), - 'logo' => array('use_default' => 1), ); + // Turn on all default features. + $features = _system_default_theme_features(); + foreach ($features as $feature) { + $default_config['features'][$feature] = 1; + } $default_config = NestedArray::mergeDeep($default_config, $config->get()); + // Cache a config object that will merge $default_config, // system.theme configuration and the theme's config. $cache[$theme] = clone $config;