From 32ed08e42bfe851594e9fef248b44e8f59d87f09 Mon Sep 17 00:00:00 2001 From: koopersmith Date: Wed, 16 May 2012 23:38:53 +0000 Subject: [PATCH] Theme Installer: Prevent unnecessary admin code from printing and print markup in correct order. Remove dead code. props ocean90, fixes #20695. git-svn-id: http://core.svn.wordpress.org/trunk@20812 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-theme-install-list-table.php | 4 ---- wp-admin/includes/theme-install.php | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php index 412fe620e..ff9819219 100644 --- a/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/wp-admin/includes/class-wp-theme-install-list-table.php @@ -275,10 +275,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { * @param object $theme - A WordPress.org Theme API object. */ function theme_installer_single( $theme ) { - $class = 'wp-full-overlay'; - if ( $theme ) - $class .= ' single-theme'; - ?>
diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 253f5840e..1fdafec83 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -168,6 +168,9 @@ function install_theme_information() { if ( is_wp_error( $theme ) ) wp_die( $theme ); + iframe_header( __('Theme Install') ); $wp_list_table->theme_installer_single( $theme ); + iframe_footer(); + exit; } add_action('install_themes_pre_theme-information', 'install_theme_information');