Changeset 3668
- Timestamp:
- 03/30/2006 11:35:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r3604 r3668 9 9 10 10 function WP_Roles() { 11 $this->_init(); 12 } 13 14 function _init () { 11 15 global $wpdb; 12 16 $this->role_key = $wpdb->prefix . 'user_roles'; … … 17 21 return; 18 22 23 $this->role_objects = array(); 24 $this->role_names = array(); 19 25 foreach ($this->roles as $role => $data) { 20 26 $this->role_objects[$role] = new WP_Role($role, $this->roles[$role]['capabilities']); … … 145 151 146 152 $this->id = $this->ID; 153 $this->_init_caps(); 154 } 155 156 function _init_caps() { 157 global $wpdb; 147 158 $this->cap_key = $wpdb->prefix . 'capabilities'; 148 159 $this->caps = &$this->{$this->cap_key};
Note: See TracChangeset
for help on using the changeset viewer.