diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 5789233..850c705 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -3061,10 +3061,15 @@ function _system_rebuild_theme_data() { $themes[$key]->prefix = $key; } } - // Inherit all the data from the current base theme, and override it with - // the specific subtheme settings. + // Inherit the data from the current base theme, and override it with the + // specific subtheme settings. + $basetheme_info = $themes[$base_theme]->info; + // Remove stylesheets-override and stylesheets-remove from the info array, + // these settings should not be inherited by subthemes. + // @see _drupal_theme_initialize(). + unset($basetheme_info['stylesheets-override'], $basetheme_info['stylesheets-remove']); $nestedArray = new NestedArray(); - $subtheme_info = $nestedArray::mergeDeep($themes[$base_theme]->info, $themes[$key]->info); + $subtheme_info = $nestedArray::mergeDeep($basetheme_info, $themes[$key]->info); $themes[$key]->info = $subtheme_info; }