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
This commit is contained in:
Daryl Koopersmith 2012-05-16 23:38:53 +00:00
parent 3ae49bd759
commit b4277fcd40
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.
*/
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 class="wp-full-overlay-sidebar">

View File

@ -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');