Ticket #21931: 21931.4.diff
File 21931.4.diff, 635 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/template-loader.php
84 84 * 85 85 * @param string $template The path of the template to include. 86 86 */ 87 if ( $template = apply_filters( 'template_include', $template ) ) 87 if ( $template = apply_filters( 'template_include', $template ) ) { 88 88 include( $template ); 89 } else { 90 $theme = wp_get_theme(); 91 if ( $theme->errors() ) { 92 wp_die( $theme->errors()->get_error_message() ); 93 } 94 } 89 95 return; 90 96 endif;