Changeset 6026 for trunk/wp-admin/includes/user.php
- Timestamp:
- 09/03/2007 11:32:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/wp-admin/includes/user.php ¶
r5750 r6026 40 40 $pass2 = $_POST['pass2']; 41 41 42 if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) { 42 if ( isset( $_POST['role'] ) && current_user_can( 'edit_users' ) ) { 43 43 if( $user_id != $current_user->id || $wp_roles->role_objects[$_POST['role']]->has_cap( 'edit_users' )) 44 44 $user->role = $_POST['role'];
Note: See TracChangeset
for help on using the changeset viewer.