Make WordPress Core

Ticket #23027: 23027.patch

File 23027.patch, 1.2 KB (added by SergeyBiryukov, 14 years ago)
  • wp-admin/includes/class-wp-upgrader.php

     
    13041304
    13051305                        echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>';
    13061306                }
    1307                 if ( !empty($this->result) && !is_wp_error($this->result) ) {
    1308                         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>';
     1307                if ( $this->result && ! is_wp_error( $this->result ) ) {
     1308                        if ( ! $this->error )
     1309                                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>';
    13091310                        echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
    13101311                }
    13111312