diff --git a/wp-includes/template-loader.php b/wp-includes/template-loader.php index 297b9704ff..57f1db1ce0 100644 --- a/wp-includes/template-loader.php +++ b/wp-includes/template-loader.php @@ -84,7 +84,13 @@ if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) : * * @param string $template The path of the template to include. */ - if ( $template = apply_filters( 'template_include', $template ) ) + if ( $template = apply_filters( 'template_include', $template ) ) { include( $template ); + } elseif ( is_user_logged_in() ) { + $theme = wp_get_theme(); + if ( $theme->errors() ) { + wp_die( $theme->errors() ); + } + } return; endif; diff --git a/wp-includes/version.php b/wp-includes/version.php index 1b811f0e9d..92cf406b7d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-1453046591767'; +$wp_version = '4.5-alpha-1453051752378'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.