_deprecated_function( __METHOD__, '4.9.0', 'WP_User::for_site()'
);
if ( empty( $cap_key ) ) { $this->cap_key =
$wpdb->
get_blog_prefix( $this->site_id
) . 'capabilities';
} else { $this->cap_key =
$cap_key;
} $this->caps =
$this->
get_caps_data();
$this->
get_role_caps();
} /**
* Retrieves all of the capabilities of the user's roles, and merges them with
* individual user capabilities.
*
* All of the capabilities of the user's roles are merged with the user's individual
* capabilities. This means that the user can be denied specific capabilities that
* their role might have, but the user is specifically denied.
*
* @since 2.0.0
*
* @return bool[] Array of key/value pairs where keys represent a capability name
* and boolean values represent whether the user has that capability.
*/