Index: wp-includes/template.php
===================================================================
--- wp-includes/template.php	(revision 25689)
+++ wp-includes/template.php	(working copy)
@@ -26,7 +26,17 @@
 	if ( empty( $templates ) )
 		$templates = array("{$type}.php");
 
-	return apply_filters( "{$type}_template", locate_template( $templates ) );
+	$template = locate_template( $templates );
+	/**
+	 * Filter the template path.
+	 *
+	 * The filter name is dynamic and depends on the $type parameter.
+	 *
+	 * @since 1.5.2
+	 *
+	 * @param string $template The template path.
+	 */
+	return apply_filters( "{$type}_template", $template );
 }
 
 /**
