Add an additional available param (the `WP_User` instance) to the `user_has_cap` filter.

Props Viper007Bond.
Fixes #24490.



git-svn-id: https://develop.svn.wordpress.org/trunk@25329 602fd350-edb4-49c9-b593-d223f7449a82