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:
parent
a06a5ecfe9
commit
9daf7a88a3
|
@ -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()
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue