Changeset 42735
- Timestamp:
- 02/25/2018 03:38:13 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r42343 r42735 482 482 * 483 483 * All of the capabilities of the roles the user belongs to are merged with 484 * the users individual roles. This also means that the user can be denied485 * specific roles that their role might have, but the specific user isn't486 * grantedpermission to.484 * user's individual capabilities. This also means that the user can be denied 485 * specific capabilities that their role might have, but the user isn't granted 486 * permission to. 487 487 * 488 488 * @since 2.0.0 … … 500 500 $wp_roles = wp_roles(); 501 501 502 // Filter out caps that are not role names and assign to $this->roles502 // Filter out caps that are not role names and assign to $this->roles. 503 503 if ( is_array( $this->caps ) ) { 504 504 $this->roles = array_filter( array_keys( $this->caps ), array( $wp_roles, 'is_role' ) ); 505 505 } 506 506 507 // Build $allcaps from role caps, overlay user's $caps507 // Build $allcaps from role caps, overlay user's $caps. 508 508 $this->allcaps = array(); 509 509 foreach ( (array) $this->roles as $role ) {
Note: See TracChangeset
for help on using the changeset viewer.