diff --git wp-admin/includes/class-wp-ms-users-list-table.php wp-admin/includes/class-wp-ms-users-list-table.php
index da00131..b298909 100644
|
|
|
class WP_MS_Users_List_Table extends WP_List_Table { |
| 139 | 139 | $role_links = array(); |
| 140 | 140 | $role_links['all'] = "<a href='" . network_admin_url('users.php') . "'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_users, 'users' ), number_format_i18n( $total_users ) ) . '</a>'; |
| 141 | 141 | $class = $role === 'super' ? ' class="current"' : ''; |
| 142 | | $role_links['super'] = "<a href='" . network_admin_url('users.php?role=super') . "'$class>" . sprintf( _n( 'Super Admin <span class="count">(%s)</span>', 'Super Admins <span class="count">(%s)</span>', $total_admins ), number_format_i18n( $total_admins ) ) . '</a>'; |
| | 142 | $role_links['super'] = "<a href='" . network_admin_url('users.php?role=super') . "'$class>" . sprintf( _n( 'Network administrator <span class="count">(%s)</span>', 'Network administrators <span class="count">(%s)</span>', $total_admins ), number_format_i18n( $total_admins ) ) . '</a>'; |
| 143 | 143 | |
| 144 | 144 | return $role_links; |
| 145 | 145 | } |
| … |
… |
class WP_MS_Users_List_Table extends WP_List_Table { |
| 242 | 242 | |
| 243 | 243 | ?><strong><a href="<?php echo $edit_link; ?>" class="edit"><?php echo $user->user_login; ?></a><?php |
| 244 | 244 | if ( in_array( $user->user_login, $super_admins ) ) { |
| 245 | | echo ' - ' . __( 'Super Admin' ); |
| | 245 | echo ' - ' . __( 'Network Administrator' ); |
| 246 | 246 | } |
| 247 | 247 | ?></strong> |
| 248 | 248 | <?php |
diff --git wp-admin/includes/network.php wp-admin/includes/network.php
index fef6b66..32b3231 100644
|
|
|
function network_step1( $errors = false ) { |
| 310 | 310 | </td> |
| 311 | 311 | </tr> |
| 312 | 312 | <tr> |
| 313 | | <th scope='row'><?php esc_html_e( 'Network Admin Email' ); ?></th> |
| | 313 | <th scope='row'><?php esc_html_e( 'Network Administrator Email' ); ?></th> |
| 314 | 314 | <td> |
| 315 | 315 | <input name='email' type='text' size='45' value='<?php echo esc_attr( $admin_email ); ?>' /> |
| 316 | 316 | <p class="description"> |
diff --git wp-admin/network/settings.php wp-admin/network/settings.php
index 80c6c33..76925e5 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 31 | 31 | '<p>' . __('New site settings are defaults applied when a new site is created in the network. These include welcome email for when a new site or user account is registered, and what᾿s put in the first post, page, comment, comment author, and comment URL.') . '</p>' . |
| 32 | 32 | '<p>' . __('Upload settings control the size of the uploaded files and the amount of available upload space for each site. You can change the default value for specific sites when you edit a particular site. Allowed file types are also listed (space separated only).') . '</p>' . |
| 33 | 33 | '<p>' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '</p>' . |
| 34 | | '<p>' . __('Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.') . '</p>' . |
| 35 | | '<p>' . __('Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.') . '</p>' |
| | 34 | '<p>' . __('Menu setting enables/disables the plugin menus from appearing for site administrators, so that only network administrators have access to activate plugins.') . '</p>' . |
| | 35 | '<p>' . __('Network administrators can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant network administrator privileges.') . '</p>' |
| 36 | 36 | ) ); |
| 37 | 37 | |
| 38 | 38 | get_current_screen()->set_help_sidebar( |
| … |
… |
if ( isset( $_GET['updated'] ) ) { |
| 109 | 109 | </tr> |
| 110 | 110 | |
| 111 | 111 | <tr> |
| 112 | | <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th> |
| | 112 | <th scope="row"><label for="admin_email"><?php _e( 'Network Administrator Email' ) ?></label></th> |
| 113 | 113 | <td> |
| 114 | 114 | <input name="admin_email" type="email" id="admin_email" aria-describedby="admin-email-desc" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ) ?>" /> |
| 115 | 115 | <p class="description" id="admin-email-desc"> |
| … |
… |
if ( isset( $_GET['updated'] ) ) { |
| 154 | 154 | update_site_option( 'registrationnotification', 'yes' ); |
| 155 | 155 | ?> |
| 156 | 156 | <td> |
| 157 | | <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account.' ) ?></label> |
| | 157 | <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ) ?> /> <?php _e( 'Send the network administrator an email notification every time someone registers a site or user account.' ) ?></label> |
| 158 | 158 | </td> |
| 159 | 159 | </tr> |
| 160 | 160 | |
diff --git wp-admin/network/site-info.php wp-admin/network/site-info.php
index 405e63f..3555fb5 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 19 | 19 | 'title' => __( 'Overview' ), |
| 20 | 20 | 'content' => |
| 21 | 21 | '<p>' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '</p>' . |
| 22 | | '<p>' . __( '<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' . |
| | 22 | '<p>' . __( '<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' . |
| 23 | 23 | '<p>' . __( '<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' . |
| 24 | 24 | '<p>' . sprintf( __( '<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . |
| 25 | 25 | '<p>' . __( '<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.' ) . '</p>' |
diff --git wp-admin/network/site-new.php wp-admin/network/site-new.php
index a44064c..b60d669 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 20 | 20 | 'id' => 'overview', |
| 21 | 21 | 'title' => __('Overview'), |
| 22 | 22 | 'content' => |
| 23 | | '<p>' . __('This screen is for Super Admins to add new sites to the network. This is not affected by the registration settings.') . '</p>' . |
| | 23 | '<p>' . __('This screen is for network administrators to add new sites. This is not affected by the registration settings.') . '</p>' . |
| 24 | 24 | '<p>' . __('If the admin email for the new site does not exist in the database, a new user will also be created.') . '</p>' |
| 25 | 25 | ) ); |
| 26 | 26 | |
diff --git wp-admin/network/site-settings.php wp-admin/network/site-settings.php
index 8e8cd24..7a432d3 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 18 | 18 | 'title' => __('Overview'), |
| 19 | 19 | 'content' => |
| 20 | 20 | '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . |
| 21 | | '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . |
| | 21 | '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . |
| 22 | 22 | '<p>' . __('<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' . |
| 23 | 23 | '<p>' . sprintf( __('<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . |
| 24 | 24 | '<p>' . __('<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' |
diff --git wp-admin/network/site-themes.php wp-admin/network/site-themes.php
index ec2b1d8..8c2fdaf 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 18 | 18 | 'title' => __('Overview'), |
| 19 | 19 | 'content' => |
| 20 | 20 | '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . |
| 21 | | '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . |
| | 21 | '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . |
| 22 | 22 | '<p>' . __('<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' . |
| 23 | 23 | '<p>' . sprintf( __('<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . |
| 24 | 24 | '<p>' . __('<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' |
diff --git wp-admin/network/site-users.php wp-admin/network/site-users.php
index 5c869eb..31a110b 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 21 | 21 | 'title' => __('Overview'), |
| 22 | 22 | 'content' => |
| 23 | 23 | '<p>' . __('The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.') . '</p>' . |
| 24 | | '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . |
| | 24 | '<p>' . __('<strong>Info</strong> — The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network administrators can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.') . '</p>' . |
| 25 | 25 | '<p>' . __('<strong>Users</strong> — This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.') . '</p>' . |
| 26 | 26 | '<p>' . sprintf( __('<strong>Themes</strong> — This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site’s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ), network_admin_url( 'themes.php' ) ) . '</p>' . |
| 27 | 27 | '<p>' . __('<strong>Settings</strong> — This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.') . '</p>' |
diff --git wp-admin/network/themes.php wp-admin/network/themes.php
index d6e4e95..c19c373 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 231 | 231 | 'title' => __('Overview'), |
| 232 | 232 | 'content' => |
| 233 | 233 | '<p>' . __('This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.') . '</p>' . |
| 234 | | '<p>' . __('If the network admin disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site’s Appearance > Themes screen.') . '</p>' . |
| 235 | | '<p>' . __('Themes can be enabled on a site by site basis by the network admin on the Edit Site screen (which has a Themes tab); get there via the Edit action link on the All Sites screen. Only network admins are able to install or edit themes.') . '</p>' |
| | 234 | '<p>' . __('If the network administrator disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site’s Appearance > Themes screen.') . '</p>' . |
| | 235 | '<p>' . __('Themes can be enabled on a site by site basis by the network administrator on the Edit Site screen (which has a Themes tab); get there via the Edit action link on the All Sites screen. Only network administrators are able to install or edit themes.') . '</p>' |
| 236 | 236 | ) ); |
| 237 | 237 | |
| 238 | 238 | get_current_screen()->set_help_sidebar( |
diff --git wp-admin/network/users.php wp-admin/network/users.php
index 0d74664..c070e80 100644
|
|
|
get_current_screen()->add_help_tab( array( |
| 182 | 182 | '<p>' . __('You can also go to the user’s profile page by clicking on the individual username.') . '</p>' . |
| 183 | 183 | '<p>' . __( 'You can sort the table by clicking on any of the table headings and switch between list and excerpt views by using the icons above the users list.' ) . '</p>' . |
| 184 | 184 | '<p>' . __('The bulk action will permanently delete selected users, or mark/unmark those selected as spam. Spam users will have posts removed and will be unable to sign up again with the same email addresses.') . '</p>' . |
| 185 | | '<p>' . __('You can make an existing user an additional super admin by going to the Edit User profile page and checking the box to grant that privilege.') . '</p>' |
| | 185 | '<p>' . __('You can make an existing user an additional network administrator by going to the Edit User profile page and checking the box to grant that privilege.') . '</p>' |
| 186 | 186 | ) ); |
| 187 | 187 | |
| 188 | 188 | get_current_screen()->set_help_sidebar( |
diff --git wp-admin/user-edit.php wp-admin/user-edit.php
index b97cddd..851b09f 100644
|
|
|
include(ABSPATH . 'wp-admin/admin-header.php'); |
| 171 | 171 | ?> |
| 172 | 172 | |
| 173 | 173 | <?php if ( !IS_PROFILE_PAGE && is_super_admin( $profileuser->ID ) && current_user_can( 'manage_network_options' ) ) { ?> |
| 174 | | <div class="updated"><p><strong><?php _e('Important:'); ?></strong> <?php _e('This user has super admin privileges.'); ?></p></div> |
| | 174 | <div class="updated"><p><strong><?php _e('Important:'); ?></strong> <?php _e('This user has network administrator privileges.'); ?></p></div> |
| 175 | 175 | <?php } ?> |
| 176 | 176 | <?php if ( isset($_GET['updated']) ) : ?> |
| 177 | 177 | <div id="message" class="updated notice is-dismissible"> |
| … |
… |
else |
| 325 | 325 | <?php endif; //!IS_PROFILE_PAGE |
| 326 | 326 | |
| 327 | 327 | if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_can( 'manage_network_options' ) && !isset($super_admins) ) { ?> |
| 328 | | <tr class="user-super-admin-wrap"><th><?php _e('Super Admin'); ?></th> |
| | 328 | <tr class="user-super-admin-wrap"><th><?php _e('Network Administrator'); ?></th> |
| 329 | 329 | <td> |
| 330 | 330 | <?php if ( $profileuser->user_email != get_site_option( 'admin_email' ) || ! is_super_admin( $profileuser->ID ) ) : ?> |
| 331 | | <p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user super admin privileges for the Network.' ); ?></label></p> |
| | 331 | <p><label><input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( $profileuser->ID ) ); ?> /> <?php _e( 'Grant this user network administrator privileges for the Network.' ); ?></label></p> |
| 332 | 332 | <?php else : ?> |
| 333 | | <p><?php _e( 'Super admin privileges cannot be removed because this user has the network admin email.' ); ?></p> |
| | 333 | <p><?php _e( 'Network administrator privileges cannot be removed because this user has the network admin email.' ); ?></p> |
| 334 | 334 | <?php endif; ?> |
| 335 | 335 | </td></tr> |
| 336 | 336 | <?php } ?> |
diff --git wp-admin/user-new.php wp-admin/user-new.php
index 10cbdd3..92753ec 100644
|
|
|
if ( is_multisite() && current_user_can('promote_users') && current_user_can('cr |
| 172 | 172 | $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>'; |
| 173 | 173 | |
| 174 | 174 | if ( is_multisite() ) { |
| 175 | | $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’s name to Edit the user profile under Network Admin > All Users.') . '</p>' . |
| | 175 | $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’s name to Edit the user profile under Network Admin > All Users.') . '</p>' . |
| 176 | 176 | '<p>' . __('New users will receive an email letting them know they’ve been added as a user for your site. This email will also contain their password. Check the box if you don’t want the user to receive a welcome email.') . '</p>'; |
| 177 | 177 | } else { |
| 178 | 178 | $help .= '<p>' . __('New users are automatically assigned a password, which they can change after logging in. You can view or edit the assigned password by clicking the Show Password button. The username cannot be changed once the user has been added.') . '</p>' . |