mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Updates: Remove the 'Download' button on the Updates screen.
Props swissspidy. Fixes #36811. Built from https://develop.svn.wordpress.org/trunk@38736 git-svn-id: http://core.svn.wordpress.org/trunk@38679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
10323e5e22
commit
a71c15f0c8
@ -54,11 +54,10 @@ function list_core_update( $update ) {
|
||||
$mysql_version = $wpdb->db_version();
|
||||
$show_buttons = true;
|
||||
if ( 'development' == $update->response ) {
|
||||
$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:');
|
||||
$download = __('Download nightly build');
|
||||
$message = __('You are using a development version of WordPress. You can update to the latest nightly build automatically:');
|
||||
} else {
|
||||
if ( $current ) {
|
||||
$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 );
|
||||
$message = sprintf( __( 'If you need to re-install version %s, you can do so here:' ), $version_string );
|
||||
$submit = __('Re-install Now');
|
||||
$form_action = 'update-core.php?action=do-core-reinstall';
|
||||
} else {
|
||||
@ -75,11 +74,10 @@ function list_core_update( $update ) {
|
||||
elseif ( !$mysql_compat )
|
||||
$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 );
|
||||
else
|
||||
$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);
|
||||
$message = sprintf(__('You can update to <a href="https://codex.wordpress.org/Version_%1$s">WordPress %2$s</a> automatically:'), $update->current, $version_string);
|
||||
if ( !$mysql_compat || !$php_compat )
|
||||
$show_buttons = false;
|
||||
}
|
||||
$download = sprintf(__('Download %s'), $version_string);
|
||||
}
|
||||
|
||||
echo '<p>';
|
||||
@ -97,7 +95,6 @@ function list_core_update( $update ) {
|
||||
} else {
|
||||
submit_button( $submit, '', 'upgrade', false );
|
||||
}
|
||||
echo ' <a href="' . esc_url( $update->download ) . '" class="button">' . $download . '</a> ';
|
||||
}
|
||||
if ( 'en_US' != $update->locale )
|
||||
if ( !isset( $update->dismissed ) || !$update->dismissed )
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38735';
|
||||
$wp_version = '4.7-alpha-38736';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user