Changeset 14123 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 04/17/2010 12:27:13 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/class-wp-upgrader.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r13827 r14123 1056 1056 $this->upgrader->strings['skin_update_failed_error'] = __('An error occured while updating %1$s: <strong>%2$s</strong>.'); 1057 1057 $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 1058 $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully. <a onclick="%2$s" href="#" >See Details</a>.');1058 $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>'); 1059 1059 } 1060 1060 … … 1088 1088 $this->error = $this->upgrader->strings[$error]; 1089 1089 1090 if ( is_wp_error($error) && $error->get_error_code()) {1090 if ( is_wp_error($error) ) { 1091 1091 foreach ( $error->get_error_messages() as $emessage ) { 1092 1092 if ( $error->get_error_data() ) … … 1102 1102 $this->in_loop = true; 1103 1103 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . '</h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 1104 echo '<div class="update-messages " style="display:none" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>';1104 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; 1105 1105 $this->flush_output(); 1106 1106 } … … 1117 1117 } 1118 1118 if ( !empty($this->result) && !is_wp_error($this->result) ) { 1119 echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle(); return false;') . '</p></div>';1119 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>'; 1120 1120 } 1121 1121 $this->reset();
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)