From 85cd918ff62fb068d3a3c427c0ae79a1e3d7a614 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Fri, 3 May 2013 23:00:14 +0000 Subject: [PATCH] Revisions UI: Add a help tab. props siobhan, DrewAPicture. see #23899. git-svn-id: https://develop.svn.wordpress.org/trunk@24173 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/revision.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/wp-admin/revision.php b/wp-admin/revision.php index 24dee70496..0706636588 100644 --- a/wp-admin/revision.php +++ b/wp-admin/revision.php @@ -87,6 +87,27 @@ $settings = array( wp_localize_script( 'revisions', 'wpRevisionsSettings', $settings ); +/* Revisions Help Tab */ + +$revisions_overview = '

' . __( 'This screen is used for managing your content revisions.' ) . '

'; +$revisions_overview .= '

' . __( 'Revisions are saved copies of your post or page, which are periodically created as you update your content. The red text on the left shows the content that was removed. The green text on the right shows the content that was added.' ) . '

'; +$revisions_overview .= '

' . __( 'From this screen you can review, compare, and restore revisions:' ) . '

'; +$revisions_overview .= ''; + +get_current_screen()->add_help_tab( array( + 'id' => 'revisions-overview', + 'title' => __( 'Overview' ), + 'content' => $revisions_overview +) ); + +$revisions_sidebar = '

' . __( 'For more information:' ) . '

'; +$revisions_sidebar .= '

' . __( 'Revisions Management' ) . '

'; +$revisions_sidebar .= '

' . __( 'Support Forums' ) . '

'; + +get_current_screen()->set_help_sidebar( $revisions_sidebar ); + require_once( './admin-header.php' ); ?>