$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');
}else{
if($current){
$message=sprintf(__('You have the latest version of WordPress. You do not need to update. However, if you want to re-install version %s, you can do so automatically or download the package and re-install manually:'),$version_string);
$message=sprintf(__('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'),$update->current,$update->php_version,$update->mysql_version,$php_version,$mysql_version);
elseif(!$php_compat)
$message=sprintf(__('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'),$update->current,$update->php_version,$php_version);
elseif(!$mysql_compat)
$message=sprintf(__('You cannot update because <a href="http://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="http://codex.wordpress.org/Version_%1$s">WordPress %2$s</a> automatically or download the package and install it manually:'),$update->current,$version_string);
echo'<p class="hint">'.__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'</p>';
echo'<p class="hint">'.sprintf(__('You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.'),$update->response!='development'?$update->current:'').'</p>';
_e('<strong>Important:</strong> before updating, please <a href="http://codex.wordpress.org/WordPress_Backups">back up your database and files</a>. For help with updates, visit the <a href="http://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.');
echo'</p></div>';
echo'<h3 class="response">';
_e('An updated version of WordPress is available.');
echo'</h3>';
}
echo'<ul class="core-updates">';
$alternate=true;
foreach((array)$updatesas$update){
echo'<li>';
list_core_update($update);
echo'</li>';
}
echo'</ul>';
if($updates){
echo'<p>'.__('While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.').'</p>';
$compat='<br />'.sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'),$cur_wp_version,$compat[0],$compat[2],$compat[1]);
}else{
$compat='<br />'.sprintf(__('Compatibility with WordPress %1$s: Unknown'),$cur_wp_version);
}
// Get plugin compat for updated version of WordPress.
$compat.='<br />'.sprintf(__('Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)'),$core_update_version,$update_compat[0],$update_compat[2],$update_compat[1]);
}else{
$compat.='<br />'.sprintf(__('Compatibility with WordPress %1$s: Unknown'),$core_update_version);
}
}
// Get the upgrade notice for the new plugin version.
<p><?php_e('The following themes have new versions available. Check the ones you want to update and then click “Update Themes”.');?></p>
<p><?phpprintf(__('<strong>Please Note:</strong> Any customizations you have made to theme files will be lost. Please consider using <a href="%s">child themes</a> for modifications.'),_x('http://codex.wordpress.org/Child_Themes','Link used in suggestion to use child themes in GUU'));?></p>
show_message('<span class="hide-if-no-js">'.sprintf(__('Welcome to WordPress %1$s. You will be redirected to the About WordPress screen. If not, click <a href="%s">here</a>.'),$result,esc_url(admin_url('about.php?updated'))).'</span>');
show_message('<span class="hide-if-js">'.sprintf(__('Welcome to WordPress %1$s. <a href="%2$s">Learn more</a>.'),$result,esc_url(admin_url('about.php?updated'))).'</span>');
'<p>'.__('This screen lets you update to the latest version of WordPress as well as update your themes and plugins from the WordPress.org repository. When updates are available, the number of available updates will appear in a bubble on the left hand menu as a notification.').'</p>'.
'<p>'.__('It is very important to keep your WordPress installation up to date for security reasons, so when you see a number appear, make sure you take the time to update, which is an easy process.').'</p>'
));
get_current_screen()->add_help_tab(array(
'id'=>'how-to-update',
'title'=>__('How to Update'),
'content'=>
'<p>'.__('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.').'</p>'.
'<p>'.__('To update themes or plugins from this screen, use the checkboxes to make your selection and click on the appropriate Update button. Check the box at the top of the Themes or Plugins section to select all and update them all at once.').'</p>'
));
get_current_screen()->set_help_sidebar(
'<p><strong>'.__('For more information:').'</strong></p>'.
'<p>'.__('<a href="http://codex.wordpress.org/Dashboard_Updates_Screen" target="_blank">Documentation on Updating WordPress</a>').'</p>'.