Changeset 14819 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 05/23/2010 12:29:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r14812 r14819 467 467 } 468 468 469 $this->skin->feedback('bulk_upgrade_start'); 469 470 $this->maintenance_mode(true); 470 471 … … 508 509 break; 509 510 } //end foreach $plugins 511 510 512 $this->maintenance_mode(false); 513 $this->skin->feedback('bulk_upgrade_end'); 514 511 515 $this->skin->footer(); 512 516 … … 705 709 } 706 710 711 $this->skin->feedback('bulk_upgrade_start'); 707 712 $this->maintenance_mode(true); 708 713 … … 746 751 break; 747 752 } //end foreach $plugins 753 748 754 $this->maintenance_mode(false); 755 $this->skin->feedback('bulk_upgrade_end'); 749 756 $this->skin->footer(); 750 757 … … 1058 1065 1059 1066 function add_strings() { 1067 $this->upgrader->strings['bulk_upgrade_start'] = __('The update process is starting. This process may take awhile on some hosts, so please be patient.'); 1060 1068 $this->upgrader->strings['skin_update_failed_error'] = __('An error occured while updating %1$s: <strong>%2$s</strong>.'); 1061 1069 $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 1062 1070 $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>'; 1071 $this->upgrader->strings['bulk_upgrade_end'] = __('All upgrades have been completed.'); 1063 1072 } 1064 1073 … … 1101 1110 $this->error = implode(', ', $messages); 1102 1111 } 1112 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 1103 1113 } 1104 1114 1105 1115 function before($title = '') { 1106 1116 $this->in_loop = true; 1107 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . '</h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 1117 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . ' <img alt="" src="' . admin_url( 'images/wpspin_light.gif' ) . '" class="hidden waiting-' . $this->upgrader->update_current . '" style="vertical-align:middle;"></h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 1118 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').show();</script>'; 1108 1119 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; 1109 1120 $this->flush_output(); … … 1122 1133 if ( !empty($this->result) && !is_wp_error($this->result) ) { 1123 1134 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>'; 1135 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 1124 1136 } 1125 1137 $this->reset();
Note: See TracChangeset
for help on using the changeset viewer.