Opened 11 years ago
Closed 11 years ago
#30852 closed defect (bug) (fixed)
Incorrect docs for `user_has_cap` filter
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.2 | Priority: | normal |
| Severity: | normal | Version: | 3.8 |
| Component: | Role/Capability | Keywords: | has-patch |
| Focuses: | docs | Cc: |
Description
The WP_User::allcaps property is "all capabilities the user has, including individual and role based," but the $allcaps parameter in the "user_has_cap" filter is documented as a role's capabilities. This patch updates the filter to match.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
The
allcapsproperty of theWP_Userclass does indeed represent all of the caps of the user, not the caps of the user's role. Introduced in r26126.