From baab49b174cf337fefefcbf55de85fedee12fbc5 Mon Sep 17 00:00:00 2001 From: Dominik Schilling 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: http://core.svn.wordpress.org/trunk@24173 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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' ); ?>