WordPress.org

Make WordPress Core

Changeset 38736


Ignore:
Timestamp:
10/06/16 01:05:15 (7 months ago)
Author:
dd32
Message:

Updates: Remove the 'Download' button on the Updates screen.

Props swissspidy.
Fixes #36811.

File:
1 edited

Legend:

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

    r38722 r38736  
    5555    $show_buttons = true; 
    5656    if ( 'development' == $update->response ) { 
    57         $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:'); 
    58         $download = __('Download nightly build'); 
     57        $message = __('You are using a development version of WordPress. You can update to the latest nightly build automatically:'); 
    5958    } else { 
    6059        if ( $current ) { 
    61             $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 ); 
     60            $message = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string ); 
    6261            $submit = __('Re-install Now'); 
    6362            $form_action = 'update-core.php?action=do-core-reinstall'; 
     
    7675                $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 ); 
    7776            else 
    78                 $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); 
     77                $message =  sprintf(__('You can update to <a href="https://codex.wordpress.org/Version_%1$s">WordPress %2$s</a> automatically:'), $update->current, $version_string); 
    7978            if ( !$mysql_compat || !$php_compat ) 
    8079                $show_buttons = false; 
    8180        } 
    82         $download = sprintf(__('Download %s'), $version_string); 
    8381    } 
    8482 
     
    9896            submit_button( $submit, '', 'upgrade', false ); 
    9997        } 
    100         echo '&nbsp;<a href="' . esc_url( $update->download ) . '" class="button">' . $download . '</a>&nbsp;'; 
    10198    } 
    10299    if ( 'en_US' != $update->locale ) 
Note: See TracChangeset for help on using the changeset viewer.