Make WordPress Core

Ticket #25487: 25487.patch

File 25487.patch, 664 bytes (added by jonlynch, 12 years ago)
  • wp-includes/template.php

     
    2626        if ( empty( $templates ) )
    2727                $templates = array("{$type}.php");
    2828
    29         return apply_filters( "{$type}_template", locate_template( $templates ) );
     29        $template = locate_template( $templates );
     30        /**
     31         * Filter the template path.
     32         *
     33         * The filter name is dynamic and depends on the $type parameter.
     34         *
     35         * @since 1.5.2
     36         *
     37         * @param string $template The template path.
     38         */
     39        return apply_filters( "{$type}_template", $template );
    3040}
    3141
    3242/**