Ticket #21931: 21931.5.diff
File 21931.5.diff, 636 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 if ( is_user_logged_in() ) { 90 $theme = wp_get_theme(); 91 if ( $theme->errors() ) { 92 wp_die( $theme->errors() ); 93 } 94 } 89 95 return; 90 96 endif;