Make WordPress Core

Ticket #23899: 23899.2.diff

File 23899.2.diff, 1.9 KB (added by DrewAPicture, 12 years ago)

Help tab

  • wp-admin/revision.php

     
    9292$strings['settings'] = $settings;
    9393wp_localize_script( 'revisions', 'wpRevisionsL10n', $strings );
    9494
     95/* Revisions Help Tabs */
     96
     97$revisions_overview  = '<p>' . __( 'This screen is used for managing your content revisions.' ) . '</p>';
     98$revisions_overview .= '<p>' . __( 'Revisions are saved copies of your post or page, which are periodically created as you update your content. Text highlighted in red shows what content was removed, highlighted in green shows what content was added.' ) . '</p>';
     99$revisions_overview .= '<p>' . __( 'From this screen you can review, compare, and restore revisions:' ) . '</p>';
     100$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>';
     101$revisions_overview .= '<li>' . __( 'Compare two different revisions by <strong>selecting the \'Compare two revisions\' box</strong> to the side.' ) . '</li>';
     102$revisions_overview .= '<li>' . __( 'To restore a revision, <strong>click the Restore This Revision button</strong>.' ) . '</li></ul>';
     103
     104get_current_screen()->add_help_tab( array(
     105        'id'      => 'revisions-overview',
     106        'title'   => __( 'Overview' ),
     107        'content' => $revisions_overview
     108) );
     109
     110$revisions_sidebar  = '<p><strong>' . __( 'For more information:' ) . '</strong></p>';
     111$revisions_sidebar .= '<p>' . __( '<a href="http://codex.wordpress.org/Revision_Management" target="_blank">Revisions Management</a>' ) . '</p>';
     112$revisions_sidebar .= '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>';
     113
     114get_current_screen()->set_help_sidebar( $revisions_sidebar );
     115
    95116require_once( './admin-header.php' );
    96117
    97118?>