Ticket #1608: caps.diff
File caps.diff, 437 bytes (added by , 19 years ago) |
---|
-
wp-includes/capabilities.php
189 189 } 190 190 191 191 function remove_cap($cap) { 192 if ( empty($this-> roles[$cap]) ) return;192 if ( empty($this->caps[$cap]) ) return; 193 193 unset($this->caps[$cap]); 194 194 update_usermeta($this->id, $this->cap_key, $this->caps); 195 195 }