Changeset 2851

Show
Ignore:
Timestamp:
09/08/05 20:39:37 (3 years ago)
Author:
ryan
Message:

remove_cap() fix from mdawaffe. fixes #1608

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/capabilities.php

    r2793 r2851  
    190190 
    191191    function remove_cap($cap) { 
    192         if ( empty($this->roles[$cap]) ) return; 
     192        if ( empty($this->caps[$cap]) ) return; 
    193193        unset($this->caps[$cap]); 
    194194        update_usermeta($this->id, $this->cap_key, $this->caps);