[wp-trac] [WordPress Trac] #21931: White screen of death if theme can't be found
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 19 16:55:39 UTC 2012
#21931: White screen of death if theme can't be found
--------------------------------------+-------------------------
Reporter: ericlewis | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Themes
Version: | Severity: normal
Keywords: 2nd-opinion dev-feedback |
--------------------------------------+-------------------------
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.");
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21931>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list