White screen of death if theme can't be found
|Reported by:||ericlewis||Owned by:|
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 (55)
5 months ago
- Keywords has-patch added; 2nd-opinion ux-error-recovery removed
- Milestone changed from Future Release to 4.5