Changeset 22418
- Timestamp:
- 11/07/2012 05:16:37 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r22354 r22418 798 798 */ 799 799 function set_role( $role ) { 800 if ( 1 == count( $this->roles ) && $role == current( $this->roles ) ) 801 return; 802 800 803 foreach ( (array) $this->roles as $oldrole ) 801 804 unset( $this->caps[$oldrole] ); 802 803 if ( 1 == count( $this->roles ) && $role == current( $this->roles ) )804 return;805 805 806 806 if ( !empty( $role ) ) {
Note: See TracChangeset
for help on using the changeset viewer.