Changeset 2904

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

Pass along grant state when saving cap. Props Owen. fixes #1702

Files:

Legend:

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

    r2898 r2904  
    8585 
    8686        $this->capabilities[$cap] = $grant; 
    87         $wp_roles->add_cap($this->name, $cap); 
     87        $wp_roles->add_cap($this->name, $cap, $grant); 
    8888    } 
    8989