Make WordPress Core


Ignore:
Timestamp:
12/31/2014 06:14:07 PM (10 years ago)
Author:
wonderboymusic
Message:

Fix docs for WP_User::allcaps:

The allcaps property of the WP_User class represents all of the caps of the user, not the caps of the user's role. Introduced in [26126].

Props dlh.
Fixes #30852.

File:
1 edited

Legend:

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

    r30979 r31013  
    986986         * @since 3.7.0 Added the user object.
    987987         *
    988          * @param array   $allcaps An array of all the role's capabilities.
     988         * @param array   $allcaps An array of all the user's capabilities.
    989989         * @param array   $caps    Actual capabilities for meta capability.
    990990         * @param array   $args    Optional parameters passed to has_cap(), typically object ID.
Note: See TracChangeset for help on using the changeset viewer.