diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
index 911cc740b7..380afa9ef8 100644
--- a/wp-admin/includes/class-wp-upgrader.php
+++ b/wp-admin/includes/class-wp-upgrader.php
@@ -466,7 +466,8 @@ class Plugin_Upgrader extends WP_Upgrader {
return false;
}
- $this->skin->feedback('bulk_upgrade_start');
+ $this->skin->bulk_header();
+
$this->maintenance_mode(true);
$results = array();
@@ -510,7 +511,8 @@ class Plugin_Upgrader extends WP_Upgrader {
} //end foreach $plugins
$this->maintenance_mode(false);
- $this->skin->feedback('bulk_upgrade_end');
+
+ $this->skin->bulk_footer();
$this->skin->footer();
@@ -708,7 +710,8 @@ class Theme_Upgrader extends WP_Upgrader {
return false;
}
- $this->skin->feedback('bulk_upgrade_start');
+ $this->skin->bulk_header();
+
$this->maintenance_mode(true);
$results = array();
@@ -752,7 +755,9 @@ class Theme_Upgrader extends WP_Upgrader {
} //end foreach $plugins
$this->maintenance_mode(false);
- $this->skin->feedback('bulk_upgrade_end');
+
+ $this->skin->bulk_footer();
+
$this->skin->footer();
// Cleanup our hooks, incase something else does a upgrade on this connection.
@@ -1087,6 +1092,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin {
echo "$string
\n";
else
echo "
$string
\n"; + $this->flush_output(); } function header() { @@ -1109,14 +1115,20 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { } $this->error = implode(', ', $messages); } - echo ''; + } + + function bulk_header() { + $this->feedback('bulk_upgrade_start'); + } + + function bulk_footer() { + $this->feedback('bulk_upgrade_end'); } function before($title = '') { $this->in_loop = true; - printf( '