Make WordPress Core

Changeset 2851


Ignore:
Timestamp:
09/08/2005 08:39:37 PM (19 years ago)
Author:
ryan
Message:

remove_cap() fix from mdawaffe. fixes #1608

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.