From 652bfa00901b2624a12f38115c43bdee77d059d4 Mon Sep 17 00:00:00 2001 From: Matt Thomas Date: Mon, 9 Dec 2013 02:37:10 +0000 Subject: [PATCH] Updates screen Help page should explain the auto-update feature. Fixes #25688, props jenmylo, trepmal. Built from https://develop.svn.wordpress.org/trunk@26818 git-svn-id: http://core.svn.wordpress.org/trunk@26705 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/update-core.php | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 6cdffc683d..5ee441216f 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -459,26 +459,29 @@ if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade' == $action && ! is $title = __('WordPress Updates'); $parent_file = 'tools.php'; -get_current_screen()->add_help_tab( array( -'id' => 'overview', -'title' => __('Overview'), -'content' => - '

' . __('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.') . '

' . - '

' . __('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.') . '

' -) ); +$updates_overview = '

' . __( 'On this screen, you can update to the latest version of WordPress, as well as update your themes and plugins from the WordPress.org repositories.' ) . '

'; +$updates_overview .= '

' . __( 'For security reasons, it is important to keep your WordPress installation up to date whenever possible. If you see an update notification appear in the Toolbar or navigation menu, make sure to take the time to update.' ) . '

'; get_current_screen()->add_help_tab( array( -'id' => 'how-to-update', -'title' => __('How to Update'), -'content' => - '

' . __('Updating your WordPress installation is a simple one-click procedure; just click on the Update button when it says a new version is available.') . '

' . - '

' . __('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.') . '

' + 'id' => 'overview', + 'title' => __( 'Overview' ), + 'content' => $updates_overview +) ); + +$updates_howto = '

' . __( 'WordPress — Updating your WordPress installation is a simple one-click procedure; just click on the “Update Now” button when you are notified that a new version is available. In most cases, WordPress can automatically apply maintenance and security updates in the background for you. A message at the top of this screen shows whether or not automatic updates will work with your site.' ) . '

'; +$updates_howto .= '

' . __( 'Themes and Plugins — To update individual themes or plugins from this screen, use the checkboxes to make your selection, then click on the appropriate “Update” button. To update all of your themes or plugins at once, you can check the box at the top of the section to select all before clicking the update button.' ) . '

'; + +get_current_screen()->add_help_tab( array( + 'id' => 'how-to-update', + 'title' => __( 'How to Update' ), + 'content' => $updates_howto ) ); get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on Updating WordPress') . '

' . - '

' . __('Support Forums') . '

' + '

' . __( 'Documentation on Updating WordPress' ) . '

' . + '

' . __( 'Configuring Automatic Background Updates' ) . '

' . + '

' . __( 'Support Forums' ) . '

' ); if ( 'upgrade-core' == $action ) {