WordPress.org

Make WordPress Core

Ticket #22451: 22451-users.diff

File 22451-users.diff, 7.4 KB (added by DrewAPicture, 17 months ago)
  • wp-admin/users.php

     
    2222// contextual help - choose Help on the top right of admin panel to preview this. 
    2323get_current_screen()->add_help_tab( array( 
    2424        'id'      => 'overview', 
    25         'title'   => __('Overview'), 
    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>' 
     25        'title'   => __( 'Overview' ), 
     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>' 
    2828) ) ; 
    2929 
    3030get_current_screen()->add_help_tab( array( 
     
    3838                                        '</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>'; 
     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$help .= '<ul><li>' . __( 'Edit takes you to the editable profile screen for that user. You can also reach that screen by clicking on the username.' ) . '</li>'; 
    4443 
    4544if ( is_multisite() ) 
    4645        $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>'; 
     
    5150 
    5251get_current_screen()->add_help_tab( array( 
    5352        'id'      => 'actions', 
    54         'title'   => __('Actions'), 
     53        'title'   => __( 'Actions' ), 
    5554        'content' => $help, 
    5655) ); 
    5756unset( $help ); 
  • wp-admin/user-new.php

     
    142142if ( is_multisite() && current_user_can('promote_users') && current_user_can('create_users') ) 
    143143        $do_both = true; 
    144144 
    145 $help = '<p>' . __('To add a new user to your site, fill in the form on this screen and click the Add New User button at the bottom.') . '</p>'; 
     145$help = '<p>' . __( 'To add a new user to your site, fill in the form on this screen and click the Add New User button at the bottom.' ) . '</p>'; 
    146146 
    147147if ( is_multisite() ) { 
    148         $help .= '<p>' . __('Because this is a multisite installation, you may add accounts that already exist on the Network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a Network Administrator and use the hover link under an existing user&#8217;s name to Edit the user profile under Network Admin > All Users.') . '</p>' . 
    149         '<p>' . __('New users will receive an email letting them know they&#8217;ve been added as a user for your site. This email will also contain their password. Check the box if you don&#8217;t want the user to receive a welcome email.') . '</p>'; 
     148        $help .= '<p>' . __( 'Because this is a Multisite installation, you may add accounts that already exist on the network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a Network Administrator and use the hover link under an existing user&#8217;s name to Edit the user profile under Network Admin > All Users.' ) . '</p>' . 
     149        '<p>' . __( 'New users will receive an email letting them know they&#8217;ve been added as a user for your site. This email will also contain their password. Check the box if you don&#8217;t want the user to receive a welcome email.' ) . '</p>'; 
    150150} else { 
    151         $help .= '<p>' . __('You must assign a password to the new user, which they can change after logging in. The username, however, cannot be changed.') . '</p>' . 
    152         '<p>' . __('New users will receive an email letting them know they&#8217;ve been added as a user for your site. By default, this email will also contain their password. Uncheck the box if you don&#8217;t want the password to be included in the welcome email.') . '</p>'; 
     151        $help .= '<p>' . __( 'You must assign a password to the new user, which they can change after logging in. The username, however, cannot be changed.' ) . '</p>'; 
     152        $help .= '<p>' . __( 'New users will receive an email letting them know they&#8217;ve been added as a user for your site. By default, this email will also contain their password. Uncheck the box if you don&#8217;t want the password to be included in the welcome email.' ) . '</p>'; 
    153153} 
    154154 
    155 $help .= '<p>' . __('Remember to click the Add New User button at the bottom of this screen when you are finished.') . '</p>'; 
     155$help .= '<p>' . __( 'Remember to click the Add New User button at the bottom of this screen when you are finished.' ) . '</p>'; 
    156156 
    157157get_current_screen()->add_help_tab( array( 
    158158        'id'      => 'overview', 
    159         'title'   => __('Overview'), 
     159        'title'   => __( 'Overview' ), 
    160160        'content' => $help, 
    161161) ); 
    162162 
    163163get_current_screen()->add_help_tab( array( 
    164164'id'      => 'user-roles', 
    165 'title'   => __('User Roles'), 
    166 'content' => '<p>' . __('Here is a basic overview of the different user roles and the permissions associated with each one:') . '</p>' . 
     165'title'   => __( 'User Roles' ), 
     166'content' => '<p>' . __( 'Here is a basic overview of the different user roles and the permissions associated with each one:' ) . '</p>' . 
    167167                                '<ul>' . 
    168                                 '<li>' . __('Administrators have access to all the administration features.') . '</li>' . 
    169                                 '<li>' . __('Editors can publish posts, manage posts as well as manage other people&#8217;s posts, etc.') . '</li>' . 
    170                                 '<li>' . __('Authors can publish and manage their own posts, and are able to upload files.') . '</li>' . 
    171                                 '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files.') . '</li>' . 
    172                                 '<li>' . __('Subscribers can read comments/comment/receive newsletters, etc. but cannot create regular site content.') . '</li>' . 
     168                                '<li>' . __( '<strong>Administrators</strong> have access to all the administration features.' ) . '</li>' . 
     169                                '<li>' . __( '<strong>Editors</strong> can publish posts, manage posts as well as manage other people&#8217;s posts, etc.' ) . '</li>' . 
     170                                '<li>' . __( '<strong>Authors</strong> can publish and manage their own posts, and are able to upload files.' ) . '</li>' . 
     171                                '<li>' . __( '<strong>Contributors</strong> can write and manage their posts but not publish posts or upload media files.' ) . '</li>' . 
     172                                '<li>' . __( '<strong>Subscribers</strong> can read comments/comment/receive newsletters, etc. but cannot create regular site content.' ) . '</li>' . 
    173173                                '</ul>' 
    174174) ); 
    175175