Make WordPress Core

Changeset 2904


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

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

File:
1 edited

Legend:

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