Make WordPress Core

Ticket #21931: 21931.patch

File 21931.patch, 678 bytes (added by sebastian.pisula, 9 years ago)
  • wp-includes/template-loader.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    8787        if ( $template = apply_filters( 'template_include', $template ) ) {
    8888                include( $template );
    8989        } elseif ( current_user_can( 'install_themes' ) ) {
    90                 $theme = wp_get_theme();
    91                 if ( $theme->errors() ) {
    92                         wp_die( $theme->errors() );
    93                 }
     90                wp_die( __( 'Template is missing.' ) );
    9491        }
    9592        return;
    9693endif;