WordPress.org

Make WordPress Core

Ticket #19020: 19020-user-new.php.diff

File 19020-user-new.php.diff, 4.0 KB (added by Ipstenu, 6 years ago)

Differences between adding new users in multisite and single, add new and add existing, emails etc

  • user-new.php

     
    139139if ( is_multisite() && current_user_can('promote_users') && current_user_can('create_users') )
    140140        $do_both = true;
    141141
    142 add_contextual_help($current_screen,
    143     '<p>' . __('To add a new user to your site, fill in the form on this screen. If you&#8217;re not sure which role to assign, you can use the link below to review the different roles and their capabilities. Here is a basic overview of roles:') . '</p>' .
    144     '<ul>' .
    145         '<li>' . __('Administrators have access to all the administration features.') . '</li>' .
    146         '<li>' . __('Editors can publish posts, manage posts as well as manage other people&#8217;s posts, etc.')  . '</li>' .
    147         '<li>' . __('Authors can publish and manage their own posts.') . '</li>' .
    148         '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files.') . '</li>' .
    149         '<li>' . __('Subscribers can read comments/comment/receive newsletters, etc.') . '</li>' .
    150     '</ul>' .
    151     '<p>' . __('You must assign a password to the new user, but don&#8217;t worry; when they log in for the first time they will be prompted to change it. 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>' .
    153     '<p>' . __('Remember to click the Add User button at the bottom of this screen when you are finished.') . '</p>'
    154 );
     142        get_current_screen()->add_help_tab( array( 
     143        'id'      => 'add-new-user',
     144        'title'   => __('Adding New Users'),
     145        'content' => '<p>' . __('To add a new user to your site, fill in the form on this screen. If you&#8217;re not sure which role to assign, you can use the link below to review the different roles and their capabilities. Here is a basic overview of roles:') . '</p>' .
     146                                        '<ul>' .
     147                                        '<li>' . __('Administrators have access to all the administration features.') . '</li>' .
     148                                        '<li>' . __('Editors can publish posts, manage posts as well as manage other people&#8217;s posts, etc.')  . '</li>' .
     149                                        '<li>' . __('Authors can publish and manage their own posts.') . '</li>' .
     150                                        '<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files.') . '</li>' .
     151                                        '<li>' . __('Subscribers can read comments/comment/receive newsletters, etc.') . '</li>' .
     152                                        '</ul>' .
     153                                ( is_multisite() ? '<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>' : '<p>' . __('You must assign a password to the new user, but don&#8217;t worry; when they log in for the first time they will be prompted to change it. The username, however, cannot be changed.') . '</p>' ).
     154                                ( is_multisite() ? '<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 recieve a welcome email.') . '</p>' : '<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>' ) .
     155                                 '<p>' . __('Remember to click the Add User button at the bottom of this screen when you are finished.') . '</p>'
     156        ) );
    155157
    156158get_current_screen()->set_help_sidebar(
    157159    '<p><strong>' . __('For more information:') . '</strong></p>' .