Changes in trunk/wp-admin/update-core.php [17048:18225]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update-core.php
r17048 r18225 20 20 function list_core_update( $update ) { 21 21 global $wp_local_package, $wpdb; 22 static $first_pass = true; 23 22 24 $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ? 23 25 $update->current : sprintf("%s–<strong>%s</strong>", $update->current, $update->locale); … … 25 27 if ( !isset($update->response) || 'latest' == $update->response ) 26 28 $current = true; 27 $submit = __('Update Automatically');29 $submit = __('Update Now'); 28 30 $form_action = 'update-core.php?action=do-core-upgrade'; 29 31 $php_version = phpversion(); … … 36 38 if ( $current ) { 37 39 $message = sprintf(__('You have the latest version of WordPress. You do not need to update. However, if you want to re-install version %s, you can do so automatically or download the package and re-install manually:'), $version_string); 38 $submit = __('Re-install Automatically');40 $submit = __('Re-install Now'); 39 41 $form_action = 'update-core.php?action=do-core-reinstall'; 40 42 } else { … … 64 66 echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>'; 65 67 if ( $show_buttons ) { 66 submit_button( $submit, 'button', 'upgrade', false ); 67 echo ' <a href="' . esc_url($update->package) . '" class="button">' . $download . '</a> '; 68 if ( $first_pass ) { 69 submit_button( $submit, 'button button-primary', 'upgrade', false ); 70 $first_pass = false; 71 } else { 72 submit_button( $submit, 'button', 'upgrade', false ); 73 } 74 echo ' <a href="' . esc_url( $update->download ) . '" class="button">' . $download . '</a> '; 68 75 } 69 76 if ( 'en_US' != $update->locale ) … … 76 83 echo '<p class="hint">'.__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'</p>'; 77 84 else if ( 'en_US' == $update->locale && get_locale() != 'en_US' ) { 78 echo '<p class="hint">'.sprintf( __('You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'), $update-> current).'</p>';85 echo '<p class="hint">'.sprintf( __('You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'), $update->response != 'development' ? $update->current : '' ).'</p>'; 79 86 } 80 87 echo '</form>'; … … 404 411 '<p>' . __('To update themes or plugins from this screen, use the checkboxes to make your selection and click on the appropriate Update button. Check the box at the top of the Themes or Plugins section to select all and update them all at once.') . '</p>' . 405 412 '<p><strong>' . __('For more information:') . '</strong></p>' . 406 '<p>' . __('<a href="http://codex.wordpress.org/Dashboard_Updates_S ubPanel" target="_blank">Documentation on Updating WordPress</a>') . '</p>' .413 '<p>' . __('<a href="http://codex.wordpress.org/Dashboard_Updates_Screen" target="_blank">Documentation on Updating WordPress</a>') . '</p>' . 407 414 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' 408 415 ); … … 413 420 require_once(ABSPATH . 'wp-admin/admin-header.php'); 414 421 core_upgrade_preamble(); 422 include(ABSPATH . 'wp-admin/admin-footer.php'); 415 423 416 424 } elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) { … … 432 440 if ( isset( $_POST['upgrade'] ) ) 433 441 do_core_upgrade($reinstall); 442 443 include(ABSPATH . 'wp-admin/admin-footer.php'); 434 444 435 445 } elseif ( 'do-plugin-upgrade' == $action ) { … … 460 470 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; 461 471 echo '</div>'; 472 include(ABSPATH . 'wp-admin/admin-footer.php'); 462 473 463 474 } elseif ( 'do-theme-upgrade' == $action ) { … … 488 499 echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>"; 489 500 echo '</div>'; 490 } 491 492 include(ABSPATH . 'wp-admin/admin-footer.php'); 501 include(ABSPATH . 'wp-admin/admin-footer.php'); 502 503 } else { 504 do_action('update-core-custom_' . $action); 505 }
Note: See TracChangeset
for help on using the changeset viewer.