From c9f428abc16c2536cbd33ee8b76404b14dbefe15 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 11 Mar 2008 00:37:29 +0000 Subject: [PATCH] Big regex for type. git-svn-id: https://develop.svn.wordpress.org/trunk@7223 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index e6a6f28597..a5bf8e0d43 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -342,6 +342,7 @@ function get_theme_root_uri() { function get_query_template($type) { $template = ''; + $type = preg_replace( '|[a-z0-9-]+|', '', $type ); if ( file_exists(TEMPLATEPATH . "/{$type}.php") ) $template = TEMPLATEPATH . "/{$type}.php";