Big regex for type.

git-svn-id: https://develop.svn.wordpress.org/trunk@7223 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2008-03-11 00:37:29 +00:00
parent 17a3b54dc0
commit c9f428abc1
1 changed files with 1 additions and 0 deletions

View File

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