Make WordPress Core

Changeset 24173


Ignore:
Timestamp:
05/03/2013 11:00:14 PM (12 years ago)
Author:
ocean90
Message:

Revisions UI: Add a help tab. props siobhan, DrewAPicture. see #23899.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/revision.php

    r24166 r24173  
    8888wp_localize_script( 'revisions', 'wpRevisionsSettings', $settings );
    8989
     90/* Revisions Help Tab */
     91
     92$revisions_overview  = '<p>' . __( 'This screen is used for managing your content revisions.' ) . '</p>';
     93$revisions_overview .= '<p>' . __( '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.' ) . '</p>';
     94$revisions_overview .= '<p>' . __( 'From this screen you can review, compare, and restore revisions:' ) . '</p>';
     95$revisions_overview .= '<ul><li>' . __( 'To navigate between revisions, <strong>drag the slider arrow left or right</strong> or <strong>use the Previous or Next buttons</strong>.' ) . '</li>';
     96$revisions_overview .= '<li>' . __( 'Compare two different revisions by <strong>selecting the &#8220;Compare two revisions&#8221; box</strong> to the side.' ) . '</li>';
     97$revisions_overview .= '<li>' . __( 'To restore a revision, <strong>click Restore This Revision</strong>.' ) . '</li></ul>';
     98
     99get_current_screen()->add_help_tab( array(
     100    'id'      => 'revisions-overview',
     101    'title'   => __( 'Overview' ),
     102    'content' => $revisions_overview
     103) );
     104
     105$revisions_sidebar  = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
     106$revisions_sidebar .= '<p>' . __( '<a href="http://codex.wordpress.org/Revision_Management" target="_blank">Revisions Management</a>' ) . '</p>';
     107$revisions_sidebar .= '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>';
     108
     109get_current_screen()->set_help_sidebar( $revisions_sidebar );
     110
    90111require_once( './admin-header.php' );
    91112
Note: See TracChangeset for help on using the changeset viewer.