From e16e98041bb8e2a461a514a472f2eb4f313b218d Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 11 Mar 2008 00:43:07 +0000 Subject: [PATCH] Smaller regex. git-svn-id: http://svn.automattic.com/wordpress/trunk@7224 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index a5bf8e0d4..bfc989325 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -342,7 +342,7 @@ function get_theme_root_uri() { function get_query_template($type) { $template = ''; - $type = preg_replace( '|[a-z0-9-]+|', '', $type ); + $type = preg_replace( '|[^a-z0-9-]+|', '', $type ); if ( file_exists(TEMPLATEPATH . "/{$type}.php") ) $template = TEMPLATEPATH . "/{$type}.php";