diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php
index c192639608..7fd4a0a29f 100644
|
a
|
b
|
function author_can( $post, $capability ) { |
| 705 | 705 | /** |
| 706 | 706 | * Whether a particular user has a specific capability. |
| 707 | 707 | * |
| | 708 | * While checking against particular roles in place of a capability is supported |
| | 709 | * in part, this practice is discouraged as it may produce unreliable results. |
| | 710 | * |
| | 711 | * Note: Will always return true if the current user is a super admin, unless specifically denied. |
| | 712 | * |
| 708 | 713 | * @since 3.1.0 |
| 709 | 714 | * |
| | 715 | * @see WP_User::has_cap() |
| | 716 | * @see map_meta_cap() |
| | 717 | * |
| 710 | 718 | * @param int|WP_User $user User ID or object. |
| 711 | 719 | * @param string $capability Capability name. |
| | 720 | * @param int $object_id Optional. ID of the specific object to check against if `$capability` is a "meta" cap. |
| | 721 | * "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used |
| | 722 | * by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts', |
| | 723 | * 'edit_others_posts', etc. Accessed via func_get_args() and passed to WP_User::has_cap(), |
| | 724 | * then map_meta_cap(). |
| 712 | 725 | * @return bool Whether the user has the given capability. |
| 713 | 726 | */ |
| 714 | 727 | function user_can( $user, $capability ) { |