Index: theme.php
===================================================================
--- theme.php	(revision 14463)
+++ theme.php	(working copy)
@@ -164,6 +164,10 @@
  * @return array Key is template name, Value is template name
  */
 function get_page_templates() {
+	/* Allow a plugin to short-circuit this function */
+	$pre = apply_filters('pre_get_page_templates', false);
+	if( $pre ) return $pre;
+	
 	$themes = get_themes();
 	$theme = get_current_theme();
 	$templates = $themes[$theme]['Template Files'];
@@ -191,7 +195,7 @@
 		}
 	}
 
-	return $page_templates;
+	return apply_filters('page_templates', $page_templates, $templates);
 }
 
 /**
