Make WordPress Core

Ticket #12919: 12919.patch

File 12919.patch, 1.6 KB (added by ocean90, 14 years ago)
  • wp-admin/includes/class-wp-upgrader.php

     
    10551055        function add_strings() {
    10561056                $this->upgrader->strings['skin_update_failed_error'] = __('An error occured while updating %1$s: <strong>%2$s</strong>.');
    10571057                $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>.');
    10591059        }
    10601060
    10611061        function feedback($string) {
     
    11161116                        echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>';
    11171117                }
    11181118                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>';
    11201120                }
    11211121                $this->reset();
    11221122                $this->flush_output();