Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/update-core.php

    r18225 r17048  
    2020function list_core_update( $update ) {
    2121    global $wp_local_package, $wpdb;
    22     static $first_pass = true;
    23 
    2422    $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ?
    2523            $update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
     
    2725    if ( !isset($update->response) || 'latest' == $update->response )
    2826        $current = true;
    29     $submit = __('Update Now');
     27    $submit = __('Update Automatically');
    3028    $form_action = 'update-core.php?action=do-core-upgrade';
    3129    $php_version    = phpversion();
     
    3836        if ( $current ) {
    3937            $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);
    40             $submit = __('Re-install Now');
     38            $submit = __('Re-install Automatically');
    4139            $form_action = 'update-core.php?action=do-core-reinstall';
    4240        } else {
     
    6664    echo '<input name="locale" value="'. esc_attr($update->locale) .'" type="hidden"/>';
    6765    if ( $show_buttons ) {
    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 '&nbsp;<a href="' . esc_url( $update->download ) . '" class="button">' . $download . '</a>&nbsp;';
     66        submit_button( $submit, 'button', 'upgrade', false );
     67        echo '&nbsp;<a href="' . esc_url($update->package) . '" class="button">' . $download . '</a>&nbsp;';
    7568    }
    7669    if ( 'en_US' != $update->locale )
     
    8376        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>';
    8477    else if ( 'en_US' == $update->locale && get_locale() != 'en_US' ) {
    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>';
     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>';
    8679    }
    8780    echo '</form>';
     
    411404    '<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>' .
    412405    '<p><strong>' . __('For more information:') . '</strong></p>' .
    413     '<p>' . __('<a href="http://codex.wordpress.org/Dashboard_Updates_Screen" target="_blank">Documentation on Updating WordPress</a>') . '</p>' .
     406    '<p>' . __('<a href="http://codex.wordpress.org/Dashboard_Updates_SubPanel" target="_blank">Documentation on Updating WordPress</a>') . '</p>' .
    414407    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    415408);
     
    420413    require_once(ABSPATH . 'wp-admin/admin-header.php');
    421414    core_upgrade_preamble();
    422     include(ABSPATH . 'wp-admin/admin-footer.php');
    423415
    424416} elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
     
    440432    if ( isset( $_POST['upgrade'] ) )
    441433        do_core_upgrade($reinstall);
    442 
    443     include(ABSPATH . 'wp-admin/admin-footer.php');
    444434
    445435} elseif ( 'do-plugin-upgrade' == $action ) {
     
    470460    echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>";
    471461    echo '</div>';
    472     include(ABSPATH . 'wp-admin/admin-footer.php');
    473462
    474463} elseif ( 'do-theme-upgrade' == $action ) {
     
    499488    echo "<iframe src='$url' style='width: 100%; height: 100%; min-height: 750px;' frameborder='0'></iframe>";
    500489    echo '</div>';
    501     include(ABSPATH . 'wp-admin/admin-footer.php');
    502 
    503 } else {
    504     do_action('update-core-custom_' . $action);
    505 }
     490}
     491
     492include(ABSPATH . 'wp-admin/admin-footer.php');
Note: See TracChangeset for help on using the changeset viewer.