Changeset 41322
- Timestamp:
- 08/29/2017 04:42:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r41290 r41322 566 566 567 567 /** 568 * Whether current user has a capability or rolefor a given site.568 * Whether the current user has a specific capability for a given site. 569 569 * 570 570 * @since 3.0.0 571 571 * 572 572 * @param int $blog_id Site ID. 573 * @param string $capability Capability or rolename.574 * @return bool 573 * @param string $capability Capability name. 574 * @return bool Whether the user has the given capability. 575 575 */ 576 576 function current_user_can_for_blog( $blog_id, $capability ) { … … 599 599 600 600 /** 601 * Whether author of supplied post has capability or role.601 * Whether the author of the supplied post has a specific capability. 602 602 * 603 603 * @since 2.9.0 604 604 * 605 * @param int| object $postPost ID or post object.606 * @param string $capability Capability or rolename.607 * @return bool 605 * @param int|WP_Post $post Post ID or post object. 606 * @param string $capability Capability name. 607 * @return bool Whether the post author has the given capability. 608 608 */ 609 609 function author_can( $post, $capability ) { … … 623 623 624 624 /** 625 * Whether a particular user has capability or role.625 * Whether a particular user has a specific capability. 626 626 * 627 627 * @since 3.1.0 628 628 * 629 * @param int| object $userUser ID or object.630 * @param string $capability Capability or rolename.631 * @return bool 629 * @param int|WP_User $user User ID or object. 630 * @param string $capability Capability name. 631 * @return bool Whether the user has the given capability. 632 632 */ 633 633 function user_can( $user, $capability ) {
Note: See TracChangeset
for help on using the changeset viewer.