Skip to content

Commit

Permalink
Merge pull request #94 from jcvignoli/master
Browse files Browse the repository at this point in the history
function current_user_can() has a second option parameter
  • Loading branch information
marekdedic authored Jan 4, 2025
2 parents 41457a3 + 7c59703 commit 0d23fad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/WordPress/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,11 @@ function checked( $checked, $current = false, $echo = false ) {

/**
* @param string $capability
* @param mixed ...$args
*
* @return bool
*/
function current_user_can( $capability ) {
function current_user_can( $capability, ...$args ) {
}

/**
Expand Down

0 comments on commit 0d23fad

Please sign in to comment.