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
This commit is contained in:
koopersmith 2012-05-16 23:38:53 +00:00
parent cf81f30e05
commit 32ed08e42b
2 changed files with 3 additions and 4 deletions

View File

@ -275,10 +275,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
* @param object $theme - A WordPress.org Theme API object. * @param object $theme - A WordPress.org Theme API object.
*/ */
function theme_installer_single( $theme ) { function theme_installer_single( $theme ) {
$class = 'wp-full-overlay';
if ( $theme )
$class .= ' single-theme';
?> ?>
<div id="theme-installer" class="wp-full-overlay single-theme"> <div id="theme-installer" class="wp-full-overlay single-theme">
<div class="wp-full-overlay-sidebar"> <div class="wp-full-overlay-sidebar">

View File

@ -168,6 +168,9 @@ function install_theme_information() {
if ( is_wp_error( $theme ) ) if ( is_wp_error( $theme ) )
wp_die( $theme ); wp_die( $theme );
iframe_header( __('Theme Install') );
$wp_list_table->theme_installer_single( $theme ); $wp_list_table->theme_installer_single( $theme );
iframe_footer();
exit;
} }
add_action('install_themes_pre_theme-information', 'install_theme_information'); add_action('install_themes_pre_theme-information', 'install_theme_information');