Changeset 23358
- Timestamp:
- 01/31/2013 01:15:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r23117 r23358 804 804 unset( $this->caps[$oldrole] ); 805 805 806 $old_roles = $this->roles; 806 807 if ( !empty( $role ) ) { 807 808 $this->caps[$role] = true; … … 813 814 $this->get_role_caps(); 814 815 $this->update_user_level_from_caps(); 815 do_action( 'set_user_role', $this->ID, $role );816 do_action( 'set_user_role', $this->ID, $role, $old_roles ); 816 817 } 817 818
Note: See TracChangeset
for help on using the changeset viewer.