Changeset 14919
- Timestamp:
- 05/26/2010 01:23:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r14879 r14919 1093 1093 else 1094 1094 echo "<p>$string</p>\n"; 1095 $this->flush_output();1096 1095 } 1097 1096 … … 1116 1115 $this->error = implode(', ', $messages); 1117 1116 } 1117 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 1118 1118 } 1119 1119 … … 1128 1128 function before($title = '') { 1129 1129 $this->in_loop = true; 1130 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . '</h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 1131 echo '<div class="update-messages" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; 1130 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); 1131 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').show();</script>'; 1132 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; 1132 1133 $this->flush_output(); 1133 1134 } … … 1144 1145 } 1145 1146 if ( !empty($this->result) && !is_wp_error($this->result) ) { 1146 echo '<div class="updated" id="finished-' . $this->upgrader->update_current . '"><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>'; 1147 1148 if ( $this->upgrader->update_count > 1 ) // Only hide the update steps if multiple items are being updated. 1149 echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 1150 else 1151 echo '<script type="text/javascript">jQuery(\'#finished-' . esc_js($this->upgrader->update_current) . '\ span\').toggle();</script>'; 1147 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>'; 1148 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 1152 1149 } 1153 1150
Note: See TracChangeset
for help on using the changeset viewer.