White screen of death if theme can't be found
|Reported by:||ericlewis||Owned by:|
|Component:||Themes||Keywords:||2nd-opinion dev-feedback ux-error-recovery|
If the current theme can't be found or is renamed, the front-end of the site will white screen. This is developer error, as when WP_USE_THEMES is true, the template loader should always have a template to load (as far as I understand).
It's rare, but I come across it every once in a while in developing. It might be nice to have a wp_die() if a proper template can't be found in template-loader.
Proof of concept:
if ( $template = apply_filters( 'template_include', $template ) ) include( $template ); else wp_die("Whoops! Looks like you're missing a theme.");
Change History (24)
comment:5 @SergeyBiryukov — 2 years ago
- Resolution duplicate deleted
- Status changed from closed to reopened