WordPress.org

Make WordPress Core

Ticket #21931: 21931.diff

File 21931.diff, 537 bytes (added by MikeHansenMe, 19 months ago)
  • wp-includes/template-loader.php

     
    3939        else : 
    4040                $template = get_index_template(); 
    4141        endif; 
    42         if ( $template = apply_filters( 'template_include', $template ) ) 
     42        if ( $template = apply_filters( 'template_include', $template ) ){ 
    4343                include( $template ); 
     44        }else{ 
     45                wp_die( "Whoops! Looks like your theme is missing." ); 
     46        }        
    4447        return; 
    4548endif;