WordPress.org

Make WordPress Core

Ticket #18265: load_template-in-template-loader.patch

File load_template-in-template-loader.patch, 426 bytes (added by elyobo, 3 years ago)

Patch against current trunk

  • wp-includes/template-loader.php

     
    4040                $template = get_index_template(); 
    4141        endif; 
    4242        if ( $template = apply_filters( 'template_include', $template ) ) 
    43                 include( $template ); 
     43                load_template( $template, false ); 
    4444        return; 
    4545endif; 
    4646