Changeset 31190 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 01/16/2015 01:48:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r31188 r31190 935 935 $this->caps[$cap] = $grant; 936 936 update_user_meta( $this->ID, $this->cap_key, $this->caps ); 937 $this->get_role_caps(); 938 $this->update_user_level_from_caps(); 937 939 } 938 940 … … 946 948 */ 947 949 public function remove_cap( $cap ) { 948 if ( ! isset( $this->caps[ $cap] ) )950 if ( ! isset( $this->caps[ $cap ] ) ) { 949 951 return; 950 unset( $this->caps[$cap] ); 952 } 953 unset( $this->caps[ $cap ] ); 951 954 update_user_meta( $this->ID, $this->cap_key, $this->caps ); 955 $this->get_role_caps(); 956 $this->update_user_level_from_caps(); 952 957 } 953 958
Note: See TracChangeset
for help on using the changeset viewer.