Smaller regex.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-03-11 00:43:07 +00:00
parent 93e92262cb
commit e16e98041b
1 changed files with 1 additions and 1 deletions

View File

@ -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";