Ticket #21931: 21931.9.diff
File 21931.9.diff, 538 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/template-loader.php
86 86 */ 87 87 if ( $template = apply_filters( 'template_include', $template ) ) { 88 88 include( $template ); 89 } elseif ( current_user_can( ' install_themes' ) ) {89 } elseif ( current_user_can( 'switch_themes' ) ) { 90 90 $theme = wp_get_theme(); 91 91 if ( $theme->errors() ) { 92 92 wp_die( $theme->errors() );