Make WordPress Core

Ticket #1608: caps.diff

File caps.diff, 437 bytes (added by mdawaffe, 19 years ago)

Fix for WP_User's remove_cap

  • wp-includes/capabilities.php

     
    189189        }
    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);
    195195        }