Big regex for type.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-03-11 00:37:29 +00:00
parent 77c8335821
commit 93e92262cb
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";