Make WordPress Core


Ignore:
Timestamp:
07/09/2023 02:47:22 PM (8 months ago)
Author:
audrasjb
Message:

Help/About: Add Help text for Rollback feature.

This changeset adds a new Help text for Rollback feature in the WordPress Updates screen. Also adds a link to the "Common Errors" HelpHub documentation page.

Follow-up to [51857].

Props costdev, afragen, audrasjb, kebbet, marybaum.
Fixes #58199.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r56107 r56171  
    10181018}
    10191019
     1020$help_sidebar_rollback = '';
     1021
     1022if ( current_user_can( 'update_themes' ) || current_user_can( 'update_plugins' ) ) {
     1023    $rollback_help = '<p>' . __( 'This feature will create a temporary backup of a plugin or theme before it is upgraded. This backup is used to restore the plugin or theme back to its previous state if there is an error during the update process.' ) . '</p>';
     1024
     1025    $rollback_help .= '<p>' . __( 'On systems with fewer resources, this may lead to server timeouts or resource limits being reached. If you encounter an issue during the update process, please create a support forum ticket and reference <strong>Rollback</strong> in the issue title.' ) . '</p>';
     1026
     1027    get_current_screen()->add_help_tab(
     1028        array(
     1029            'id'      => 'rollback-plugins-themes',
     1030            'title'   => __( 'Restore Plugin or Theme' ),
     1031            'content' => $rollback_help,
     1032        )
     1033    );
     1034
     1035    $help_sidebar_rollback = '<p>' . __( '<a href="https://wordpress.org/documentation/article/common-wordpress-errors/">Common Errors</a>' ) . '</p>';
     1036}
     1037
    10201038get_current_screen()->set_help_sidebar(
    10211039    '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    10221040    '<p>' . __( '<a href="https://wordpress.org/documentation/article/dashboard-updates-screen/">Documentation on Updating WordPress</a>' ) . '</p>' .
    10231041    $help_sidebar_autoupdates .
    1024     '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
     1042    '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' .
     1043    $help_sidebar_rollback
    10251044);
    10261045
     
    10341053    <div class="wrap">
    10351054    <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>
     1055    <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>
    10371056
    10381057    <?php
Note: See TracChangeset for help on using the changeset viewer.