Ticket #14310: template_hierarchy.5.diff
File template_hierarchy.5.diff, 792 bytes (added by , 9 years ago) |
---|
-
wp-includes/template.php
26 26 if ( empty( $templates ) ) 27 27 $templates = array("{$type}.php"); 28 28 29 $template = locate_template( $templates ); 29 /** 30 * Filter the list of templates that should be passed to locate_template(). 31 * 32 * The last element in the array should always be the fallback template for this query type. 33 * 34 * @param array $templates A list of template candidates, in ascending order of priority. 35 */ 36 $templates = apply_filters( "{$type}_template_hierarchy", $templates ); 37 $template = locate_template( $templates ); 30 38 31 39 /** 32 40 * Filter the path of the queried template by type.