X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..41497a896330304904ef6d5783c724ea713739f6:/wp-admin/themes.php?ds=inline diff --git a/wp-admin/themes.php b/wp-admin/themes.php index c892705e..cbcde87c 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -20,7 +20,7 @@ if ( current_user_can( 'switch_themes' ) && isset($_GET['action'] ) ) { $theme = wp_get_theme( $_GET['stylesheet'] ); if ( ! $theme->exists() || ! $theme->is_allowed() ) wp_die( __( 'Cheatin’ uh?' ) ); - switch_theme($_GET['template'], $_GET['stylesheet']); + switch_theme( $theme->get_template(), $theme->get_stylesheet() ); wp_redirect( admin_url('themes.php?activated=true') ); exit; } elseif ( 'delete' == $_GET['action'] ) { @@ -64,6 +64,8 @@ if ( current_user_can( 'install_themes' ) ) { ) ); } +add_thickbox(); + endif; // switch_themes if ( current_user_can( 'edit_theme_options' ) ) {