WordPress.org

Make WordPress Core

Changeset 14919


Ignore:
Timestamp:
05/26/2010 01:23:25 AM (11 years ago)
Author:
dd32
Message:

Revert back to spinner on bulk upgrades. See #11232

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r14879 r14919  
    10931093        else
    10941094            echo "<p>$string</p>\n";
    1095         $this->flush_output();
    10961095    }
    10971096
     
    11161115            $this->error = implode(', ', $messages);
    11171116        }
     1117        echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
    11181118    }
    11191119
     
    11281128    function before($title = '') {
    11291129        $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>';
    11321133        $this->flush_output();
    11331134    }
     
    11441145        }
    11451146        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>';
    11521149        }
    11531150
Note: See TracChangeset for help on using the changeset viewer.