Ticket #13239: 13239.load-template.diff
File 13239.load-template.diff, 674 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/template.php
function load_template( $_template_file, $require_once = true ) { 497 497 if ( is_array( $wp_query->query_vars ) ) 498 498 extract( $wp_query->query_vars, EXTR_SKIP ); 499 499 500 if ( $require_once ) 501 require_once( $_template_file ); 502 else 503 require( $_template_file ); 500 if ( apply_filters( 'do_load_template', true, $_template_file, $require_once ) ) { 501 if ( $require_once ) 502 require_once( $_template_file ); 503 else 504 require( $_template_file ); 505 } 504 506 } 505 507