Smaller regex.

git-svn-id: https://develop.svn.wordpress.org/trunk@7224 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2008-03-11 00:43:07 +00:00
parent c9f428abc1
commit e8eaeb4e43

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