WordPress.org

Make WordPress Core

Ticket #25688: 25688.6.diff

File 25688.6.diff, 4.4 KB (added by JustinSainton, 6 years ago)
  • wp-admin/update-core.php

     
    451451$action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-core';
    452452
    453453$upgrade_error = false;
     454
    454455if ( ( 'do-theme-upgrade' == $action || ( 'do-plugin-upgrade' == $action && ! isset( $_GET['plugins'] ) ) )
    455456        && ! isset( $_POST['checked'] ) ) {
    456457        $upgrade_error = $action == 'do-theme-upgrade' ? 'themes' : 'plugins';
     
    460461$title = __('WordPress Updates');
    461462$parent_file = 'tools.php';
    462463
     464$overview  = '<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 you have updates available, a notification will appear in the navigation menu.' ) . '</p>';
     465$overview .= '<p>' . __( 'It is important to keep your WordPress installation up to date for security reasons. Updating is an easy process, so when you see a notification, make sure you take the time to update.' ) . '</p>';
     466$overview .= '<p>' . sprintf( __( 'You will need to update when a new major version has been released. WordPress is able to <a target="_blank" href="%s">automatically apply</a> maintenance and security updates in the background. Check below to see if your site is able to apply these updates automatically.' ), esc_url( 'ref="​http://codex.wordpress.org/Updating_WordPress#Automatic_Background_Updates' ) ) . '</p>';
     467
    463468get_current_screen()->add_help_tab( array(
    464 'id'            => 'overview',
    465 'title'         => __('Overview'),
    466 'content'       =>
    467         '<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>' .
    468         '<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>'
     469        'id'      => 'overview',
     470        'title'   => __( 'Overview' ),
     471        'content' => $overview
    469472) );
    470473
     474$how_to_update  = '<p>' . __( 'Updating your WordPress installation is a simple process - click the "Update Now" button when you are notified that a new major version of WordPress is available.' ) . '</p>';
     475$how_to_update .= '<p>' . sprintf( __( 'For maintenance and security releases, WordPress is able to <a target="_blank" href="%s">automatically apply</a> the updates in the background. Check below to see if your site is able to apply these updates automatically.' ), esc_url( 'http://codex.wordpress.org/Updating_WordPress#Automatic_Background_Updates' ) ) . '</p>';
     476$how_to_update .= '<p>' . __( 'To update themes or plugins from this screen, use the checkboxes to make your selection, then 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>';
     477
    471478get_current_screen()->add_help_tab( array(
    472 'id'            => 'how-to-update',
    473 'title'         => __('How to Update'),
    474 'content'       =>
    475         '<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>' .
    476         '<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>'
     479        'id'      => 'how-to-update',
     480        'title'   => __('How to Update'),
     481        'content' => $how_to_update
    477482) );
    478483
    479484get_current_screen()->set_help_sidebar(
    480485        '<p><strong>' . __('For more information:') . '</strong></p>' .
    481486        '<p>' . __('<a href="http://codex.wordpress.org/Dashboard_Updates_Screen" target="_blank">Documentation on Updating WordPress</a>') . '</p>' .
     487        '<p>' . __('<a href="http://codex.wordpress.org/Configuring_Automatic_Background_Updates" target="_blank">Configuring Automatic Background Updates</a>') . '</p>' .
    482488        '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
     489
    483490);
    484491
    485492if ( 'upgrade-core' == $action ) {
    486493        // Force a update check when requested
    487494        $force_check = ! empty( $_GET['force-check'] );
    488         wp_version_check( array(), $force_check );
     495        wp_version_check( array(), $force_check );
    489496
    490497        require_once(ABSPATH . 'wp-admin/admin-header.php');
    491498        ?>