Customizer should check theme errors(), not just exists()
|Reported by:||nacin||Owned by:||nacin|
wp-admin/customize.php checks that a theme exists. It should actually check that the theme is error-free.
Note that we need to make a determination for what happens when the current theme has errors. In some cases, this will cause a reversion to the default theme, but not always (search for 'theme_parent_invalid' in class-wp-theme.php).