From e2238d665f51ad4e37b866c9e0499d9571af0c2f Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 4 Jul 2008 14:37:48 +0000 Subject: WP Merge with revision 8255 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1350 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-includes/theme.php') diff --git a/wp-includes/theme.php b/wp-includes/theme.php index dafc073..aa5f385 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -486,12 +486,12 @@ function preview_theme() { if ( !current_user_can( 'switch_themes' ) ) return; - $_GET[template] = preg_replace('|[^a-z0-9]|i', '', $_GET[template]); + $_GET[template] = preg_replace('|[^a-z0-9_-]|i', '', $_GET[template]); add_filter('template', create_function('', "return '$_GET[template]';") ); if ( isset($_GET['stylesheet']) ) { - $_GET[stylesheet] = preg_replace('|[^a-z0-9]|i', '', $_GET[stylesheet]); + $_GET[stylesheet] = preg_replace('|[^a-z0-9_-]|i', '', $_GET[stylesheet]); add_filter('stylesheet', create_function('', "return '$_GET[stylesheet]';") ); } -- cgit