Ticket #11232: 11232.patch
File 11232.patch, 4.5 KB (added by , 15 years ago) |
---|
-
wp-admin/css/wp-admin.dev.css
3752 3752 padding: 4px 20px 6px; 3753 3753 font: italic normal normal 24px/35px Georgia, "Times New Roman", "Bitstream Charter", Times, serif; 3754 3754 } 3755 3756 /* Scrollbar fix for bulk upgrade iframe */ 3757 body.update-php { 3758 height: 98%; 3759 } -
wp-admin/includes/class-wp-upgrader.php
466 466 return false; 467 467 } 468 468 469 $this->skin->feedback('bulk_upgrade_start'); 469 470 $this->maintenance_mode(true); 470 471 471 472 $results = array(); … … 507 508 if ( false === $result ) 508 509 break; 509 510 } //end foreach $plugins 511 510 512 $this->maintenance_mode(false); 513 $this->skin->feedback('bulk_upgrade_end'); 514 511 515 $this->skin->footer(); 512 516 513 517 // Cleanup our hooks, incase something else does a upgrade on this connection. … … 704 708 return false; 705 709 } 706 710 711 $this->skin->feedback('bulk_upgrade_start'); 707 712 $this->maintenance_mode(true); 708 713 709 714 $results = array(); … … 745 750 if ( false === $result ) 746 751 break; 747 752 } //end foreach $plugins 753 748 754 $this->maintenance_mode(false); 755 $this->skin->feedback('bulk_upgrade_end'); 749 756 $this->skin->footer(); 750 757 751 758 // Cleanup our hooks, incase something else does a upgrade on this connection. … … 1056 1063 } 1057 1064 1058 1065 function add_strings() { 1066 $this->upgrader->strings['bulk_upgrade_start'] = __('The update process will start now. It may take awhile to finish.'); 1059 1067 $this->upgrader->strings['skin_update_failed_error'] = __('An error occured while updating %1$s: <strong>%2$s</strong>.'); 1060 1068 $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 1061 1069 $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>'; 1070 $this->upgrader->strings['bulk_upgrade_end'] = __('The update process is complete.'); 1062 1071 } 1063 1072 1064 1073 function feedback($string) { … … 1103 1112 1104 1113 function before($title = '') { 1105 1114 $this->in_loop = true; 1106 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . '</h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 1115 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); 1116 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').show();</script>'; 1107 1117 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; 1108 1118 $this->flush_output(); 1109 1119 } … … 1120 1130 } 1121 1131 if ( !empty($this->result) && !is_wp_error($this->result) ) { 1122 1132 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>'; 1133 echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>'; 1123 1134 } 1124 1135 $this->reset(); 1125 1136 $this->flush_output(); -
wp-admin/update-core.php
418 418 echo '<div class="wrap">'; 419 419 screen_icon('plugins'); 420 420 echo '<h2>' . esc_html__('Update Plugins') . '</h2>'; 421 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height:850px;'></iframe>";421 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; 422 422 echo '</div>'; 423 423 } elseif ( 'do-theme-upgrade' == $action ) { 424 424 check_admin_referer('upgrade-core'); … … 441 441 echo '<div class="wrap">'; 442 442 screen_icon('themes'); 443 443 echo '<h2>' . esc_html__('Update Themes') . '</h2>'; 444 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height:850px;'></iframe>";444 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; 445 445 echo '</div>'; 446 446 } 447 447