Docs: Add a note to the DocBlock for current_user_can() to explain that it will always return true for super admins, unless specifically denied.

Props finnj.
Fixes #35551.


git-svn-id: https://develop.svn.wordpress.org/trunk@36492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2016-02-07 01:26:17 +00:00
parent 38aeeb5ebe
commit a1019e97b0

View File

@ -408,6 +408,8 @@ function map_meta_cap( $cap, $user_id ) {
* While checking against particular roles in place of a capability is supported
* in part, this practice is discouraged as it may produce unreliable results.
*
* Note: Will always return true if the current user is a super admin, unless specifically denied.
*
* @since 2.0.0
*
* @see WP_User::has_cap()