From 93e92262cb50039e03d7dba12bfc1ce7519ad0c3 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 11 Mar 2008 00:37:29 +0000 Subject: [PATCH] Big regex for type. git-svn-id: http://svn.automattic.com/wordpress/trunk@7223 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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";