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.

Built from https://develop.svn.wordpress.org/trunk@36492


git-svn-id: http://core.svn.wordpress.org/trunk@36459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2016-02-07 01:27:26 +00:00
parent a06a5ecfe9
commit 9daf7a88a3
2 changed files with 3 additions and 1 deletions

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()

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36491';
$wp_version = '4.5-alpha-36492';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.