[wp-trac] [WordPress Trac] #42589: Add missing "third argument" documentation to user_can()

WordPress Trac noreply at wordpress.org
Thu Nov 16 20:28:55 UTC 2017


#42589: Add missing "third argument" documentation to user_can()
-----------------------------+-----------------------------
 Reporter:  mariovalney      |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Role/Capability  |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:  docs             |
-----------------------------+-----------------------------
 There is an undocumented, third argument, '''$args''', into
 [https://developer.wordpress.org/reference/functions/user_can/ user_can()]
 function as written in [https://developer.wordpress.org/plugins/users
 /roles-and-capabilities/#user-can Roles and Capabilities] section of
 Plugin Handbook.

 It's the same of
 [https://developer.wordpress.org/reference/functions/current_user_can/
 current_user_can()] (already documented).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42589>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list