From b4277fcd40d96e1e1f1238299fdd2ec5d3d1a41e Mon Sep 17 00:00:00 2001 From: Daryl 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: https://develop.svn.wordpress.org/trunk@20812 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 412fe620ec..ff98192192 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 253f5840e6..1fdafec831 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');