Ticket #21931: 21931.diff

File 21931.diff, 537 bytes (added by MikeHansenMe, 8 months ago)
Line 
1Index: wp-includes/template-loader.php
2===================================================================
3--- wp-includes/template-loader.php     (revision 21916)
4+++ wp-includes/template-loader.php     (working copy)
5@@ -39,7 +39,10 @@
6        else :
7                $template = get_index_template();
8        endif;
9-       if ( $template = apply_filters( 'template_include', $template ) )
10+       if ( $template = apply_filters( 'template_include', $template ) ){
11                include( $template );
12+       }else{
13+               wp_die( "Whoops! Looks like your theme is missing." );
14+       }       
15        return;
16 endif;