Make WordPress Core

Ticket #14310: template_hierarchy.4.diff

File template_hierarchy.4.diff, 455 bytes (added by scribu, 12 years ago)

refresh for WP 3.6-alpha

  • 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() ) { 
    2626        if ( empty( $templates ) )
    2727                $templates = array("{$type}.php");
    2828
     29        $templates = apply_filters( "{$type}_template_hierarchy", $templates );
     30
    2931        return apply_filters( "{$type}_template", locate_template( $templates ) );
    3032}
    3133