The sub-theme settings inheritance bug in Drupal core #761608: Missing theme settings values because list_themes() has inconsistent theme object data is going to be fixed soon and when testing the patch, I realized that some undefined index errors were occurring when removing default settings from a sub-theme's .info file. This was due to Fusion utilizing $theme_data[$theme_name]->info['settings'] to generate a set of grid options. The attached patch causes Fusion to iterate through all settings in $theme_data['fusion_core']->info['settings'] and replace any missing variables in $theme_data[$theme_name]->info['settings'] with the value from Fusion core.
Comment | File | Size | Author |
---|---|---|---|
#2 | fusion_core-grid-settings-default-1421938-2.patch | 12.96 KB | Poieo |
#1 | fusion_core-grid-settings-defaults-1421938-1.patch | 11.31 KB | Poieo |
fusion_core-grid-settings-defaults.patch | 932 bytes | sheena_d |
Comments
Comment #1
Poieo CreditAttribution: Poieo commentedAttached patch includes the original plus the removal of settings from the starter themes and inclusion in core.
Comment #2
Poieo CreditAttribution: Poieo commentedRevised. Forgot some settings.
Comment #4
Poieo CreditAttribution: Poieo commentedCommited.