Make WordPress Core


Ignore:
Timestamp:
12/01/2011 01:17:14 AM (15 years ago)
Author:
nacin
Message:

Help tweaks for users, tools. props jane, see #19020.

File:
1 edited

Legend:

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

    r19438 r19509  
    2222// contextual help - choose Help on the top right of admin panel to preview this.
    2323get_current_screen()->add_help_tab( array(
    24         'id'      => 'screen-info',
    25         'title'   => __('Users List'),
     24        'id'      => 'overview',
     25        'title'   => __('Overview'),
    2626        'content' => '<p>' . __('This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.') . '</p>' .
    2727                                 '<p>' . __('To add a new user for your site, click the Add New button at the top of the screen or Add New in the Users menu section.') . '</p>'
    … …  
    2929
    3030get_current_screen()->add_help_tab( array(
    31         'id'      => 'customize-display',
    32         'title'   => __('Customizing This Display'),
     31        'id'      => 'screen-display',
     32        'title'   => __('Screen Display'),
    3333        'content' => '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
    3434                                        '<ul>' .
    … …  
    3939) );
    4040
     41$help = '<p>' . __('Hovering over a row in the users list will display action links that allow you to manage users. You can perform the following actions:') . '</p>' .
     42        '<ul>' .
     43        '<li>' . __('Edit takes you to the editable profile screen for that user. You can also reach that screen by clicking on the username.') . '</li>';
     44
     45if ( is_multisite() )
     46        $help .= '<li>' . __( 'Remove allows you to remove a user from your site. It does not delete their posts. You can also remove multiple users at once by using Bulk Actions.' ) . '</li>';
     47else
     48        $help .= '<li>' . __( 'Delete brings you to the Delete Users screen for confirmation, where you can permanently remove a user from your site and delete their posts. You can also delete multiple users at once by using Bulk Actions.' ) . '</li>';
     49
     50$help .= '</ul>';
     51
    4152get_current_screen()->add_help_tab( array(
    42         'id'      => 'row-actions',
    43         'title'   => __('Action Links'),
    44         'content' => '<p>' . __('Hovering over a row in the users list will display action links that allow you to manage users. You can perform the following actions:') . '</p>' .
    45                                         '<ul>' .
    46                                         '<li>' . __('Edit takes you to the editable profile screen for that user. You can also reach that screen by clicking on the username.') . '</li>' .
    47                                         ( is_multisite() ? '<li>' . __('Remove allows you to remove a user from your site.  It does not delete their posts.') . '</li>' : '<li>' . __('Delete brings you to the Delete Users screen for confirmation, where you can permanently remove a user from your site and delete their posts.') . '</li>' ) .
    48                                         '</ul>'
     53        'id'      => 'actions',
     54        'title'   => __('Actions'),
     55        'content' => $help,
    4956) );
    50        
     57unset( $help );
     58
    5159get_current_screen()->set_help_sidebar(
    5260    '<p><strong>' . __('For more information:') . '</strong></p>' .
Note: See TracChangeset for help on using the changeset viewer.