WordPress.org

Make WordPress Core

Ticket #23899: 23899.3.diff

File 23899.3.diff, 1.9 KB (added by siobhan, 2 years ago)

amended help text

  • wp-admin/revision.php

     
    8787 
    8888wp_localize_script( 'revisions', 'wpRevisionsSettings', $settings ); 
    8989 
     90/* Revisions Help Tabs */ 
     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 
    92113?>