Ticket #14310: template_hierarchy.4.diff
File template_hierarchy.4.diff, 455 bytes (added by , 12 years ago) |
---|
-
wp-includes/template.php
diff --git wp-includes/template.php wp-includes/template.php index d86a677..5d402b2 100644
function get_query_template( $type, $templates = array() ) { 26 26 if ( empty( $templates ) ) 27 27 $templates = array("{$type}.php"); 28 28 29 $templates = apply_filters( "{$type}_template_hierarchy", $templates ); 30 29 31 return apply_filters( "{$type}_template", locate_template( $templates ) ); 30 32 } 31 33