Make WordPress Core

Ticket #14310: template_hierarchy.3.diff

File template_hierarchy.3.diff, 428 bytes (added by scribu, 14 years ago)

just the filter

  • wp-includes/theme.php

     
    745745        if ( empty( $templates ) )
    746746                $templates = array("{$type}.php");
    747747
     748        $templates = apply_filters( "{$type}_template_hierarchy", $templates );
     749
    748750        return apply_filters( "{$type}_template", locate_template( $templates ) );
    749751}
    750752