Make WordPress Core

Ticket #21931: 21931.7.diff

File 21931.7.diff, 521 bytes (added by ericlewis, 9 years ago)
  • src/wp-includes/template-loader.php

     
    8686         */
    8787        if ( $template = apply_filters( 'template_include', $template ) ) {
    8888                include( $template );
    89         } elseif ( is_user_logged_in() ) {
     89        } elseif ( current_user_can( 'manage_themes' ) ) {
    9090                $theme = wp_get_theme();
    9191                if ( $theme->errors() ) {
    9292                        wp_die( $theme->errors() );