Ticket #10285: 10285.diff
File 10285.diff, 548 bytes (added by , 16 years ago) |
---|
-
wp-includes/capabilities.php
565 565 * @param string $role Role name. 566 566 */ 567 567 function remove_role( $role ) { 568 if ( empty( $this-> roles[$role] ) || ( count( $this->roles ) <= 1 ) )568 if ( empty( $this->caps[$role] ) || ( count( $this->roles ) <= 1 ) ) 569 569 return; 570 570 unset( $this->caps[$role] ); 571 571 update_usermeta( $this->ID, $this->cap_key, $this->caps );