Make WordPress Core

Ticket #19020: 19020-users.php.diff

File 19020-users.php.diff, 3.6 KB (added by Ipstenu, 14 years ago)

Users - Adding in Multisite info (remove instead of delete), row actions, customizing

  • users.php

     
    2020add_screen_option( 'per_page', array('label' => _x( 'Users', 'users per page (screen options)' )) );
    2121
    2222// contextual help - choose Help on the top right of admin panel to preview this.
    23 add_contextual_help($current_screen,
    24     '<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>' .
    25     '<p>' . __('You can customize the display of information on this screen as you can on other screens, by using the Screen Options tab and the on-screen filters.') . '</p>' .
    26     '<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>'
    27 );
     23        get_current_screen()->add_help_tab( array(
     24                'id'      => 'screen-info',
     25                'title'   => __('Users List'),
     26                '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>' .
     27                                         '<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>'
     28        ) ) ;
    2829
     30        get_current_screen()->add_help_tab( array(
     31                'id'      => 'customize-display',
     32                'title'   => __('Customizing This Display'),
     33                'content' => '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
     34                            '<ul>' .
     35                            '<li>' . __('You can hide/display columns based on your needs and decide how many users to list per screen using the Screen Options tab.') . '</li>' .
     36                            '<li>' . __('You can filter the list of users by User Role using the text links in the upper left to show All, Administrator, Editor, Author, Contributor, or Subscriber. The default view is to show all users.  Unused User Roles are not listed.') . '</li>' .
     37                            '<li>' . __('You can view all posts made by a user by clicking on the number under the Posts column.') . '</li>' .
     38                            '</ul>'
     39        ) );
     40
     41    get_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>'
     49        ) );
     50       
    2951get_current_screen()->set_help_sidebar(
    3052    '<p><strong>' . __('For more information:') . '</strong></p>' .
    3153    '<p>' . __('<a href="http://codex.wordpress.org/Users_Screen" target="_blank">Documentation on Managing Users</a>') . '</p>' .