Make WordPress Core

Opened 9 years ago

Last modified 8 years ago

#42589 new enhancement

Add missing "third argument" documentation to user_can()

Reported by: mariovalney Owned by:
Priority: normal Milestone: Future Release
Component: Role/Capability Version:
Severity: normal Keywords: has-patch dev-feedback
Cc: Focuses: docs

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)

42589.diff (1.7 KB ) - added by mariovalney 9 years ago.
42589.2.patch (1.4 KB ) - added by mariovalney 8 years ago.

Download all attachments as: .zip

Change History (7)

@mariovalney
9 years ago

#1 @mariovalney
9 years ago

  • Keywords has-patch added

Added 42589.diff merging the current description of user_can and the well-documented current_user_can.

#2 @johnbillion
9 years ago

Thanks for the patch, @mariovalney.

This is very closely related to #37402, because the third parameter is actually variadic.

#3 @johnbillion
9 years ago

  • Milestone Awaiting Review5.0
  • Version trunk

#4 @peterwilsoncc
8 years ago

  • Milestone 5.05.1

Switching milestone due to the focus on the new editor (Gutenberg) for WordPress 5.0.

#5 @pento
8 years ago

  • Keywords dev-feedback added
  • Milestone 5.1Future Release

This patch needs reviewing.

@mariovalney
8 years ago

Note: See TracTickets for help on using tickets.