Make WordPress Core

Ticket #36811: 36811.diff

File 36811.diff, 2.3 KB (added by swissspidy, 8 years ago)
  • src/wp-admin/update-core.php

    diff --git src/wp-admin/update-core.php src/wp-admin/update-core.php
    index 38c30d4..4788250 100644
    function list_core_update( $update ) { 
    5353        $mysql_version  = $wpdb->db_version();
    5454        $show_buttons = true;
    5555        if ( 'development' == $update->response ) {
    56                 $message = __('You are using a development version of WordPress. You can update to the latest nightly build automatically or download the nightly build and install it manually:');
    57                 $download = __('Download nightly build');
     56                $message = __('You are using a development version of WordPress. You can update to the latest nightly build automatically:');
    5857        } else {
    5958                if ( $current ) {
    60                         $message = sprintf( __( 'If you need to re-install version %s, you can do so here or download the package and re-install manually:' ), $version_string );
     59                        $message = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string );
    6160                        $submit = __('Re-install Now');
    6261                        $form_action = 'update-core.php?action=do-core-reinstall';
    6362                } else {
    function list_core_update( $update ) { 
    7473                        elseif ( !$mysql_compat )
    7574                                $message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.'), $update->current, $update->mysql_version, $mysql_version );
    7675                        else
    77                                 $message =      sprintf(__('You can update to <a href="https://codex.wordpress.org/Version_%1$s">WordPress %2$s</a> automatically or download the package and install it manually:'), $update->current, $version_string);
     76                                $message =      sprintf(__('You can update to <a href="https://codex.wordpress.org/Version_%1$s">WordPress %2$s</a> automatically:'), $update->current, $version_string);
    7877                        if ( !$mysql_compat || !$php_compat )
    7978                                $show_buttons = false;
    8079                }
    81                 $download = sprintf(__('Download %s'), $version_string);
    8280        }
    8381
    8482        echo '<p>';
    function list_core_update( $update ) { 
    9694                } else {
    9795                        submit_button( $submit, 'button', 'upgrade', false );
    9896                }
    99                 echo '&nbsp;<a href="' . esc_url( $update->download ) . '" class="button">' . $download . '</a>&nbsp;';
    10097        }
    10198        if ( 'en_US' != $update->locale )
    10299                if ( !isset( $update->dismissed ) || !$update->dismissed )