Suggest backing up before proceeding with upgrade

git-svn-id: https://develop.svn.wordpress.org/trunk@9033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-09-29 23:47:33 +00:00
parent 8f62bd766a
commit 7e52e7ee44
1 changed files with 7 additions and 1 deletions

View File

@ -131,11 +131,17 @@ function core_upgrade_preamble() {
return;
}
echo '<p>';
_e('An updated version of WordPress is available. Before upgrading, please backup your blog. Pressing the Backup button below will create a backup of your blog and prompt you to save that backup to your computer. This sometimes takes a few minutes, so please be patient. After the backup finishes, continue below to upgrade your blog automatically or manually.');
echo '</p>';
echo '<p><a class="button" href="export.php?download=true">' . __('Backup') . '</a></p>';
if ( 'development' == $update->response ) {
$message = __('You are using a development version of WordPress. You can upgrade to the latest nightly build automatically or download the nightly build and install it manually. Which would you like to do?');
$submit = __('Download nightly build');
} else {
$message = sprintf(__('You can upgrade to version %s automatically or download the nightly build and install it manually. Which would you like to do?'), $update->current);
$message = sprintf(__('You can upgrade to version %s automatically or download the package and install it manually. Which would you like to do?'), $update->current);
$submit = sprintf(__('Download %s'), $update->current);
}