Opened 12 years ago
Closed 12 years ago
#30852 closed defect (bug) (fixed)
Incorrect docs for `user_has_cap` filter
| Reported by: | dlh | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Role/Capability | Version: | 3.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.