From 9daf7a88a3ef77b04b38b242415eb4fea87c1d7d Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 7 Feb 2016 01:27:26 +0000 Subject: [PATCH] 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 --- wp-includes/capabilities.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index e6526daa82..9ed3447e6c 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -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() diff --git a/wp-includes/version.php b/wp-includes/version.php index ffc04cbd0a..1a33e0a606 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.