Opened 7 years ago
Last modified 6 years ago
#42589 new enhancement
Add missing "third argument" documentation to user_can()
Reported by: | mariovalney | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Role/Capability | Keywords: | has-patch dev-feedback |
Focuses: | docs | Cc: |
Description
There is an undocumented, third argument, $args, into user_can() function as written in Roles and Capabilities section of Plugin Handbook.
It's the same of current_user_can() (already documented).
Attachments (2)
Change History (7)
#2
@
7 years ago
Thanks for the patch, @mariovalney.
This is very closely related to #37402, because the third parameter is actually variadic.
#4
@
6 years ago
- Milestone changed from 5.0 to 5.1
Switching milestone due to the focus on the new editor (Gutenberg) for WordPress 5.0.
Note: See
TracTickets for help on using
tickets.
Added 42589.diff merging the current description of user_can and the well-documented current_user_can.