Ticket #12919: 12919.patch
File 12919.patch, 1.6 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/class-wp-upgrader.php
1055 1055 function add_strings() { 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="#"><span>Show Details</span><span class="hidden">Hide Details</span></a>.'); 1059 1059 } 1060 1060 1061 1061 function feedback($string) { … … 1116 1116 echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>'; 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(); 1122 1122 $this->flush_output();