Smaller regex.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
93e92262cb
commit
e16e98041b
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue