WordPress.org

Make WordPress Core

Changeset 20683


Ignore:
Timestamp:
05/02/2012 02:17:04 PM (6 years ago)
Author:
nacin
Message:

Update phpdoc for WP_User::has_cap(). props nunomorgadinho. see #19756.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r20534 r20683  
    854854     * This is useful for looking up whether the user has a specific role
    855855     * assigned to the user. The second optional parameter can also be used to
    856      * check for capabilities against a specific post.
     856     * check for capabilities against a specific object, such as a post or user.
    857857     *
    858858     * @since 2.0.0
     
    860860     *
    861861     * @param string|int $cap Capability or role name to search.
    862      * @param int $post_id Optional. Post ID to check capability against specific post.
    863862     * @return bool True, if user has capability; false, if user does not have capability.
    864863     */
Note: See TracChangeset for help on using the changeset viewer.