Changeset 42876 for trunk/src/wp-includes/class-wp-user.php
- Timestamp:
- 03/25/2018 07:32:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r42747 r42876 611 611 * @since 3.6.0 Added $old_roles to include an array of the user's previous roles. 612 612 * 613 * @param int $user_id The user ID.614 * @param string $role The new role.615 * @param array$old_roles An array of the user's previous roles.613 * @param int $user_id The user ID. 614 * @param string $role The new role. 615 * @param string[] $old_roles An array of the user's previous roles. 616 616 */ 617 617 do_action( 'set_user_role', $this->ID, $role, $old_roles ); … … 751 751 * @since 3.7.0 Added the user object. 752 752 * 753 * @param array$allcaps An array of all the user's capabilities.754 * @param array$caps Actual capabilities for meta capability.755 * @param array $args Optional parameters passed to has_cap(), typically object ID.756 * @param WP_User $user The user object.753 * @param bool[] $allcaps An array of all the user's capabilities. 754 * @param string[] $caps Actual capabilities for meta capability. 755 * @param array $args Optional parameters passed to has_cap(), typically object ID. 756 * @param WP_User $user The user object. 757 757 */ 758 758 $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this );
Note: See TracChangeset
for help on using the changeset viewer.