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.




git-svn-id: https://develop.svn.wordpress.org/trunk@56171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2023-07-09 14:47:22 +00:00
parent 8f2c73e971
commit 890f982250

View File

@@ -1017,11 +1017,30 @@ if ( ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type
$help_sidebar_autoupdates = '<p>' . __( '<a href="https://wordpress.org/documentation/article/plugins-themes-auto-updates/">Documentation on Auto-updates</a>' ) . '</p>';
}
$help_sidebar_rollback = '';
if ( current_user_can( 'update_themes' ) || current_user_can( 'update_plugins' ) ) {
$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>';
$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>';
get_current_screen()->add_help_tab(
array(
'id' => 'rollback-plugins-themes',
'title' => __( 'Restore Plugin or Theme' ),
'content' => $rollback_help,
)
);
$help_sidebar_rollback = '<p>' . __( '<a href="https://wordpress.org/documentation/article/common-wordpress-errors/">Common Errors</a>' ) . '</p>';
}
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="https://wordpress.org/documentation/article/dashboard-updates-screen/">Documentation on Updating WordPress</a>' ) . '</p>' .
$help_sidebar_autoupdates .
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>'
'<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' .
$help_sidebar_rollback
);
if ( 'upgrade-core' === $action ) {
@@ -1033,7 +1052,7 @@ if ( 'upgrade-core' === $action ) {
?>
<div class="wrap">
<h1><?php _e( 'WordPress Updates' ); ?></h1>
<p><?php _e( 'Here you can find information about updates, set auto-updates and see what plugins or themes need updating.' ); ?></p>
<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>
<?php
if ( $upgrade_error ) {