-- bad white space part deux

git-svn-id: https://develop.svn.wordpress.org/trunk@17023 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-12-17 08:42:37 +00:00
parent ee16fbfe00
commit 373ed6ae4e
1 changed files with 3 additions and 3 deletions

View File

@ -1149,8 +1149,8 @@ function preview_theme() {
// Admin Thickbox requests
if ( isset( $_GET['preview_iframe'] ) )
show_admin_bar( false );
show_admin_bar( false );
$_GET['template'] = preg_replace('|[^a-z0-9_./-]|i', '', $_GET['template']);
if ( validate_file($_GET['template']) )
@ -1164,7 +1164,7 @@ function preview_theme() {
return;
add_filter( 'stylesheet', '_preview_theme_stylesheet_filter' );
}
// Prevent theme mods to current theme being used on theme being previewed
add_filter( 'pre_option_mods_' . get_current_theme(), '__return_empty_array' );