Make WordPress Core

Ticket #58199: 58199-pr4381.patch

File 58199-pr4381.patch, 3.3 KB (added by marybaum, 17 months ago)

Patch after copy review

  • update-core.php

    Subject: [PATCH] Copy review for rollback upgrades.
    ---
    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/update-core.php b/update-core.php
    a b  
    10021002
    10031003$help_sidebar_autoupdates = '';
    10041004
    1005 if ( ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type( 'theme' ) ) || ( current_user_can( 'update_plugins' ) && wp_is_auto_update_enabled_for_type( 'plugin' ) ) ) {
    1006         $help_tab_autoupdates  = '<p>' . __( 'Auto-updates can be enabled or disabled for WordPress major versions and for each individual theme or plugin. Themes or plugins with auto-updates enabled will display the estimated date of the next auto-update. Auto-updates depends on the WP-Cron task scheduling system.' ) . '</p>';
    1007         $help_tab_autoupdates .= '<p>' . __( 'Please note: Third-party themes and plugins, or custom code, may override WordPress scheduling.' ) . '</p>';
    1008 
    1009         get_current_screen()->add_help_tab(
     1005if ( current_user_can( 'update_themes' ) || current_user_can( 'update_plugins' ) ) {
     1006        +       $rollback_help = '<p>' . __( 'Rollback creates a temporary backup of a plugin or theme before it is upgraded.
     1007                                                  If an error occurs during the update process, WordPress uses this backup to restore the plugin or theme
     1008                                                  to its previous state.' ) . '</p>';
     1009        +
     1010        +       $rollback_help .= '<p>' . __( 'On systems with limited resources, this  may lead to server timeouts, or you could reach the limits of your
     1011                                                   resources. If you run into an issue during the update process, please create a ticket in the  support forum
     1012                                                   and reference <strong>Rollback</strong> in the issue title.' ) . '</p>';
     1013        +
     1014        +       get_current_screen()->add_help_tab(
    10101015                array(
    1011                         'id'      => 'plugins-themes-auto-updates',
    1012                         'title'   => __( 'Auto-updates' ),
    1013                         'content' => $help_tab_autoupdates,
    1014                 )
    1015         );
     1016                                'id'      => 'rollback-plugins-themes',
     1017                                'title'   => __( 'Rollback' ),
     1018                                'content' => $rollback_help,
     1019                        )
     1020                );
    10161021
    1017         $help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/documentation/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>';
    1018 }
     1022        $help_sidebar_rollback = '<p>' . __( '<a href="https://wordpress.org/documentation/article/common-wordpress-errors/">Common Errors</a>' ) . '</p>';
     1023        }
    10191024
    10201025get_current_screen()->set_help_sidebar(
    10211026        '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
     
    10321037        require_once ABSPATH . 'wp-admin/admin-header.php';
    10331038        ?>
    10341039        <div class="wrap">
    1035         <h1><?php _e( 'WordPress Updates' ); ?></h1>
    1036         <p><?php _e( 'Here you can find information about updates, set auto-updates and see what plugins or themes need updating.' ); ?></p>
    1037 
     1040                <h1><?php _e( 'WordPress Updates' ); ?></h1>
     1041                <p><?php _e( 'Here you can find information about updates, set auto-updates, and see what plugins or themes need updating.' ); ?></p>
     1042                +       <p><?php _e( 'Updates may take several minutes to complete. If there is no feedback after 5 minutes, or if there are errors, please refer to the Help section above.' ); ?></p>
     1043        </div>
    10381044        <?php
    10391045        if ( $upgrade_error ) {
    10401046                echo '<div class="error"><p>';