From bfaf3d3f0b52a07f1b3191344d7470162930c740 Mon Sep 17 00:00:00 2001 From: dd32 Date: Wed, 26 May 2010 01:23:25 +0000 Subject: [PATCH] Revert back to spinner on bulk upgrades. See #11232 git-svn-id: http://svn.automattic.com/wordpress/trunk@14919 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 380afa9ef8..ecff57fe5a 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1092,7 +1092,6 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { echo "$string
\n"; else echo "

$string

\n"; - $this->flush_output(); } function header() { @@ -1115,6 +1114,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { } $this->error = implode(', ', $messages); } + echo ''; } function bulk_header() { @@ -1127,8 +1127,9 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { function before($title = '') { $this->in_loop = true; - printf( '

' . $this->upgrader->strings['skin_before_update_header'] . '

', $title, $this->upgrader->update_current, $this->upgrader->update_count); - echo '

'; + printf( '

' . $this->upgrader->strings['skin_before_update_header'] . '

', $title, $this->upgrader->update_current, $this->upgrader->update_count); + echo ''; + echo '

'; $this->flush_output(); } @@ -1143,12 +1144,8 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { echo ''; } if ( !empty($this->result) && !is_wp_error($this->result) ) { - echo '

' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '

'; - - if ( $this->upgrader->update_count > 1 ) // Only hide the update steps if multiple items are being updated. - echo ''; - else - echo ''; + echo '

' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '

'; + echo ''; } $this->reset();