Changeset 3705 for trunk/wp-includes/capabilities.php
- Timestamp:
- 04/13/2006 04:49:38 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/capabilities.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r3668 r3705 231 231 unset($this->caps[$cap]); 232 232 update_usermeta($this->id, $this->cap_key, $this->caps); 233 } 234 235 function remove_all_caps() { 236 global $wpdb; 237 $this->caps = array(); 238 update_usermeta($this->id, $this->cap_key, ''); 239 update_usermeta($this->id, $wpdb->prefix.'user_level', ''); 240 $this->get_role_caps(); 233 241 } 234 242
Note: See TracChangeset
for help on using the changeset viewer.