Index: wp-includes/theme.php
===================================================================
--- wp-includes/theme.php	(revision 17572)
+++ wp-includes/theme.php	(working copy)
@@ -745,6 +745,8 @@
 	if ( empty( $templates ) )
 		$templates = array("{$type}.php");
 
+	$templates = apply_filters( 'query_templates', $templates, $type );
+
 	return apply_filters( "{$type}_template", locate_template( $templates ) );
 }
 
