~canonical-sysadmins/wordpress/4.7.2

« back to all changes in this revision

Viewing changes to wp-admin/network/users.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        wp_die( __( 'Multisite support is not enabled.' ) );
15
15
 
16
16
if ( ! current_user_can( 'manage_network_users' ) )
17
 
        wp_die( __( 'You do not have permission to access this page.' ), 403 );
 
17
        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
18
18
 
19
19
if ( isset( $_GET['action'] ) ) {
20
20
        /** This action is documented in wp-admin/network/edit.php */
23
23
        switch ( $_GET['action'] ) {
24
24
                case 'deleteuser':
25
25
                        if ( ! current_user_can( 'manage_network_users' ) )
26
 
                                wp_die( __( 'You do not have permission to access this page.' ), 403 );
 
26
                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
27
27
 
28
28
                        check_admin_referer( 'deleteuser' );
29
29
 
44
44
 
45
45
                case 'allusers':
46
46
                        if ( !current_user_can( 'manage_network_users' ) )
47
 
                                wp_die( __( 'You do not have permission to access this page.' ), 403 );
 
47
                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
48
48
 
49
49
                        if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) {
50
50
                                check_admin_referer( 'bulk-users-network' );
57
57
                                                switch ( $doaction ) {
58
58
                                                        case 'delete':
59
59
                                                                if ( ! current_user_can( 'delete_users' ) )
60
 
                                                                        wp_die( __( 'You do not have permission to access this page.' ), 403 );
 
60
                                                                        wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
61
61
                                                                $title = __( 'Users' );
62
62
                                                                $parent_file = 'users.php';
63
63
                                                                require_once( ABSPATH . 'wp-admin/admin-header.php' );
106
106
                case 'dodelete':
107
107
                        check_admin_referer( 'ms-users-delete' );
108
108
                        if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) )
109
 
                                wp_die( __( 'You do not have permission to access this page.' ), 403 );
 
109
                                wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
110
110
 
111
111
                        if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
112
112
                                foreach ( $_POST['blog'] as $id => $users ) {
161
161
                '<p>' . __('This table shows all users across the network and the sites to which they are assigned.') . '</p>' .
162
162
                '<p>' . __('Hover over any user on the list to make the edit links appear. The Edit link on the left will take you to their Edit User profile page; the Edit link on the right by any site name goes to an Edit Site screen for that site.') . '</p>' .
163
163
                '<p>' . __('You can also go to the user&#8217;s profile page by clicking on the individual username.') . '</p>' .
164
 
                '<p>' . __('You can sort the table by clicking on any of the bold headings and switch between list and excerpt views by using the icons in the upper right.') . '</p>' .
 
164
                '<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>' .
165
165
                '<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>' .
166
166
                '<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>'
167
167
) );