Changeset 43582 for trunk/src/wp-includes/class-wp-user.php
- Timestamp:
- 08/27/2018 02:27:22 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r43571 r43582 81 81 * 82 82 * @since 2.0.0 83 * @var array 83 * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values 84 * represent whether the user has that capability. 84 85 */ 85 86 public $allcaps = array(); … … 479 480 480 481 /** 481 * Retrieve all of the role capabilities and merge with individual capabilities. 482 * 483 * All of the capabilities of the roles the user belongs to are merged with 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 * 488 * @since 2.0.0 489 * 490 * @return array List of all capabilities for the user. 482 * Retrieves all of the capabilities of the roles of the user, and merges them with individual user capabilities. 483 * 484 * All of the capabilities of the roles of the user are merged with the user's individual capabilities. This means 485 * that the user can be denied specific capabilities that their role might have, but the user is specifically denied. 486 * 487 * @since 2.0.0 488 * 489 * @return bool[] Array of key/value pairs where keys represent a capability name and boolean values 490 * represent whether the user has that capability. 491 491 */ 492 492 public function get_role_caps() { … … 752 752 * 753 753 * @since 2.0.0 754 * @since 3.7.0 Added the user object.754 * @since 3.7.0 Added the `$user` parameter. 755 755 * 756 * @param bool[] $allcaps An array of all the user's capabilities. 757 * @param string[] $caps Actual capabilities for meta capability. 758 * @param array $args Optional parameters passed to has_cap(), typically object ID. 756 * @param bool[] $allcaps Array of key/value pairs where keys represent a capability name and boolean values 757 * represent whether the user has that capability. 758 * @param string[] $caps Required primitive capabilities for the requested capability. 759 * @param array $args { 760 * Arguments that accompany the requested capability check. 761 * 762 * @type string $0 Requested capability. 763 * @type int $1 Concerned user ID. 764 * @type mixed ...$2 Optional second and further parameters, typically object ID. 765 * } 759 766 * @param WP_User $user The user object. 760 767 */
Note: See TracChangeset
for help on using the changeset viewer.