diff --git a/src/wp-admin/includes/class-bulk-upgrader-skin.php b/src/wp-admin/includes/class-bulk-upgrader-skin.php
index f406d160e4a57..9845f1191c517 100644
--- a/src/wp-admin/includes/class-bulk-upgrader-skin.php
+++ b/src/wp-admin/includes/class-bulk-upgrader-skin.php
@@ -141,7 +141,12 @@ public function error( $errors ) {
}
$this->error = implode( ', ', $messages );
}
- echo '';
+ wp_print_inline_script_tag(
+ sprintf(
+ 'jQuery( %s ).hide();',
+ wp_json_encode( '.waiting-' . $this->upgrader->update_current, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES )
+ )
+ );
}
/**
@@ -172,7 +177,12 @@ public function bulk_footer() {
public 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 '';
+ wp_print_inline_script_tag(
+ sprintf(
+ 'jQuery( %s ).css( "display", "inline-block" );',
+ wp_json_encode( '.waiting-' . $this->upgrader->update_current, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES )
+ )
+ );
// This progress messages div gets moved via JavaScript when clicking on "More details.".
echo '';
$this->flush_output();
@@ -200,7 +210,12 @@ public function after( $title = '' ) {
)
);
- echo '';
+ wp_print_inline_script_tag(
+ sprintf(
+ 'jQuery( %s ).show();',
+ wp_json_encode( '#progress-' . $this->upgrader->update_current, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES )
+ )
+ );
}
if ( $this->result && ! is_wp_error( $this->result ) ) {
if ( ! $this->error ) {
@@ -210,7 +225,12 @@ public function after( $title = '' ) {
'
';
}
- echo '';
+ wp_print_inline_script_tag(
+ sprintf(
+ 'jQuery( %s ).hide();',
+ wp_json_encode( '.waiting-' . $this->upgrader->update_current, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES )
+ )
+ );
}
$this->reset();