diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index 3aefbb89ba..ab8294809e 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -1017,11 +1017,30 @@ if ( ( current_user_can( 'update_themes' ) && wp_is_auto_update_enabled_for_type $help_sidebar_autoupdates = '
' . __( 'Documentation on Auto-updates' ) . '
'; } +$help_sidebar_rollback = ''; + +if ( current_user_can( 'update_themes' ) || current_user_can( 'update_plugins' ) ) { + $rollback_help = '' . __( '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.' ) . '
'; + + $rollback_help .= '' . __( '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 Rollback in the issue title.' ) . '
'; + + get_current_screen()->add_help_tab( + array( + 'id' => 'rollback-plugins-themes', + 'title' => __( 'Restore Plugin or Theme' ), + 'content' => $rollback_help, + ) + ); + + $help_sidebar_rollback = '' . __( 'Common Errors' ) . '
'; +} + get_current_screen()->set_help_sidebar( '' . __( 'For more information:' ) . '
' . '' . __( 'Documentation on Updating WordPress' ) . '
' . $help_sidebar_autoupdates . - '' . __( 'Support forums' ) . '
' + '' . __( 'Support forums' ) . '
' . + $help_sidebar_rollback ); if ( 'upgrade-core' === $action ) { @@ -1033,7 +1052,7 @@ if ( 'upgrade-core' === $action ) { ?>