diff --git src/wp-includes/capabilities.php b/capabilities.php
index 608ff40..45b11ff 100755
|
old
|
new
|
|
| 20 | 20 | * |
| 21 | 21 | * @param string $cap Capability name. |
| 22 | 22 | * @param int $user_id User ID. |
| 23 | | * @param int $object_id Optional. ID of the specific object to check against if `$cap` is a "meta" cap. |
| 24 | | * "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used |
| 25 | | * by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts', |
| 26 | | * 'edit_others_posts', etc. The parameter is accessed via func_get_args(). |
| | 23 | * |
| 27 | 24 | * @return array Actual capabilities for meta capability. |
| 28 | 25 | */ |
| 29 | 26 | function map_meta_cap( $cap, $user_id ) { |
| … |
… |
function map_meta_cap( $cap, $user_id ) {
|
| 617 | 614 | * @see map_meta_cap() |
| 618 | 615 | * |
| 619 | 616 | * @param string $capability Capability name. |
| 620 | | * @param int $object_id Optional. ID of the specific object to check against if `$capability` is a "meta" cap. |
| 621 | | * "Meta" capabilities, e.g. 'edit_post', 'edit_user', etc., are capabilities used |
| 622 | | * by map_meta_cap() to map to other "primitive" capabilities, e.g. 'edit_posts', |
| 623 | | * 'edit_others_posts', etc. Accessed via func_get_args() and passed to WP_User::has_cap(), |
| 624 | | * then map_meta_cap(). |
| | 617 | * |
| 625 | 618 | * @return bool Whether the current user has the given capability. If `$capability` is a meta cap and `$object_id` is |
| 626 | 619 | * passed, whether the current user has the given meta capability for the given object. |
| 627 | 620 | */ |
| … |
… |
function get_super_admins() {
|
| 803 | 796 | * |
| 804 | 797 | * @since 3.0.0 |
| 805 | 798 | * |
| 806 | | * @param int $user_id (Optional) The ID of a user. Defaults to the current user. |
| | 799 | * @param int|bool $user_id (Optional) The ID of a user. Defaults to the current user. |
| 807 | 800 | * @return bool True if the user is a site admin. |
| 808 | 801 | */ |
| 809 | 802 | function is_super_admin( $user_id = false ) { |