Changeset 47122 for trunk/src/wp-admin/users.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/users.php
r46811 r47122 26 26 add_screen_option( 'per_page' ); 27 27 28 // contextual help - choose Help on the top right of admin panel to preview this.28 // Contextual help - choose Help on the top right of admin panel to preview this. 29 29 get_current_screen()->add_help_tab( 30 30 array( … … 132 132 wp_die( __( 'Sorry, you are not allowed to edit this user.' ), 403 ); 133 133 } 134 // The new role of the current user must also have the promote_users cap or be a multisite super admin 134 135 // The new role of the current user must also have the promote_users cap or be a multisite super admin. 135 136 if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $role ]->has_cap( 'promote_users' ) 136 137 && ! ( is_multisite() && current_user_can( 'manage_network_users' ) ) ) { … … 595 596 break; 596 597 597 } // end of the $doaction switch598 } // End of the $doaction switch. 598 599 599 600 include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset
for help on using the changeset viewer.