From a71c15f0c809946377622dd2574c94e3ee16be28 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Thu, 6 Oct 2016 01:06:31 +0000 Subject: [PATCH] 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 --- wp-admin/update-core.php | 9 +++------ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index f2328eb7bb..bb03b09ddf 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -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 WordPress %1$s 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 WordPress %2$s automatically or download the package and install it manually:'), $update->current, $version_string); + $message = sprintf(__('You can update to WordPress %2$s automatically:'), $update->current, $version_string); if ( !$mysql_compat || !$php_compat ) $show_buttons = false; } - $download = sprintf(__('Download %s'), $version_string); } echo '

'; @@ -97,7 +95,6 @@ function list_core_update( $update ) { } else { submit_button( $submit, '', 'upgrade', false ); } - echo ' ' . $download . ' '; } if ( 'en_US' != $update->locale ) if ( !isset( $update->dismissed ) || !$update->dismissed ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 66a34dbb63..39ffa9de5c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.