Ticket #16817: 16817.diff
| File 16817.diff, 1.8 KB (added by , 15 years ago) |
|---|
-
wp-admin/includes/class-wp-upgrader.php
1067 1067 class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { 1068 1068 var $in_loop = false; 1069 1069 var $error = false; 1070 var $errors_occurred = false; 1070 1071 1071 1072 function Bulk_Upgrader_Skin($args = array()) { 1072 1073 return $this->__construct($args); … … 1081 1082 1082 1083 function add_strings() { 1083 1084 $this->upgrader->strings['skin_upgrade_start'] = __('The update process is starting. This process may take a while on some hosts, so please be patient.'); 1084 $this->upgrader->strings['skin_update_failed_error'] = __('An error occurred while updating %1$s: <strong>%2$s</strong> .');1085 $this->upgrader->strings['skin_update_failed_error'] = __('An error occurred while updating %1$s: <strong>%2$s</strong>'); 1085 1086 $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 1086 1087 $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>'; 1087 1088 $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.'); … … 1126 1127 $this->error = implode(', ', $messages); 1127 1128 } 1128 1129 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 1130 $this->errors_occurred = true; 1129 1131 } 1130 1132 1131 1133 function bulk_header() { … … 1133 1135 } 1134 1136 1135 1137 function bulk_footer() { 1136 $this->feedback('skin_upgrade_end'); 1138 if( !$this->errors_occurred ) 1139 $this->feedback( 'skin_upgrade_end' ); 1137 1140 } 1138 1141 1139 1142 function before($title = '') {