Changeset 4504 for trunk/wp-includes/capabilities.php
- Timestamp:
- 11/20/2006 04:29:06 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/capabilities.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r4495 r4504 131 131 class WP_User { 132 132 var $data; 133 var $id = 0; 133 var $ID = 0; 134 var $id = 0; // Deprecated, use $ID instead. 134 135 var $caps = array(); 135 136 var $cap_key; … … 194 195 function add_role($role) { 195 196 $this->caps[$role] = true; 196 update_usermeta($this-> id, $this->cap_key, $this->caps);197 update_usermeta($this->ID, $this->cap_key, $this->caps); 197 198 $this->get_role_caps(); 198 199 $this->update_user_level_from_caps(); … … 203 204 return; 204 205 unset($this->caps[$role]); 205 update_usermeta($this-> id, $this->cap_key, $this->caps);206 update_usermeta($this->ID, $this->cap_key, $this->caps); 206 207 $this->get_role_caps(); 207 208 } … … 216 217 $this->roles = false; 217 218 } 218 update_usermeta($this-> id, $this->cap_key, $this->caps);219 update_usermeta($this->ID, $this->cap_key, $this->caps); 219 220 $this->get_role_caps(); 220 221 $this->update_user_level_from_caps(); … … 262 263 263 264 $args = array_slice(func_get_args(), 1); 264 $args = array_merge(array($cap, $this-> id), $args);265 $args = array_merge(array($cap, $this->ID), $args); 265 266 $caps = call_user_func_array('map_meta_cap', $args); 266 267 // Must have ALL requested caps
Note: See TracChangeset
for help on using the changeset viewer.