Changeset 48591 for trunk/src/wp-includes/class-wp-user.php
- Timestamp:
- 07/23/2020 09:53:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r48590 r48591 57 57 * 58 58 * @since 2.0.0 59 * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values60 * represent whether the user has that capability.59 * @var bool[] Array of key/value pairs where keys represent a capability name 60 * and boolean values represent whether the user has that capability. 61 61 */ 62 62 public $caps = array(); … … 82 82 * 83 83 * @since 2.0.0 84 * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values85 * represent whether the user has that capability.84 * @var bool[] Array of key/value pairs where keys represent a capability name 85 * and boolean values represent whether the user has that capability. 86 86 */ 87 87 public $allcaps = array(); … … 483 483 484 484 /** 485 * Retrieves all of the capabilities of the roles of the user, and merges them with individual user capabilities. 486 * 487 * All of the capabilities of the roles of the user are merged with the user's individual capabilities. This means 488 * that the user can be denied specific capabilities that their role might have, but the user is specifically denied. 489 * 490 * @since 2.0.0 491 * 492 * @return bool[] Array of key/value pairs where keys represent a capability name and boolean values 493 * represent whether the user has that capability. 485 * Retrieves all of the capabilities of the user's roles, and merges them with 486 * individual user capabilities. 487 * 488 * All of the capabilities of the user's roles are merged with the user's individual 489 * capabilities. This means that the user can be denied specific capabilities that 490 * their role might have, but the user is specifically denied. 491 * 492 * @since 2.0.0 493 * 494 * @return bool[] Array of key/value pairs where keys represent a capability name 495 * and boolean values represent whether the user has that capability. 494 496 */ 495 497 public function get_role_caps() { … … 767 769 * @since 3.7.0 Added the `$user` parameter. 768 770 * 769 * @param bool[] $allcaps Array of key/value pairs where keys represent a capability name and boolean values770 * represent whether the user has that capability.771 * @param bool[] $allcaps Array of key/value pairs where keys represent a capability name 772 * and boolean values represent whether the user has that capability. 771 773 * @param string[] $caps Required primitive capabilities for the requested capability. 772 774 * @param array $args {
Note: See TracChangeset
for help on using the changeset viewer.