Ticket #40453: 40453.patch
File 40453.patch, 1.8 KB (added by , 8 years ago) |
---|
-
wp-admin/includes/class-bulk-upgrader-skin.php
43 43 /* translators: 1: Title of an update */ 44 44 $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 45 45 /* translators: 1: Title of an update */ 46 $this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' ) . ' < a onclick="%2$s" href="#" class="hide-if-no-js"><span>' . __( 'Show Details' ) . '</span><span class="hidden">' . __( 'Hide Details' ) . '</span></a>';46 $this->upgrader->strings['skin_update_successful'] = __( '%1$s updated successfully.' ) . ' <button onclick="%2$s" type="button" class="hide-if-no-js button-link"><span>' . __( 'Show Details' ) . '</span><span class="hidden">' . __( 'Hide Details' ) . '</span></button>'; 47 47 $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.'); 48 48 } 49 49 … … 149 149 } 150 150 if ( $this->result && ! is_wp_error( $this->result ) ) { 151 151 if ( ! $this->error ) 152 echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '</p></div>';152 echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle();') . '</p></div>'; 153 153 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 154 154 } 155 155