Skip to content

Commit

Permalink
function current_user_can() has a second option parameter https://dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvignoli committed Jan 4, 2025
1 parent 41457a3 commit 643b411
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( string $capability, ...$args ) {
}

/**
Expand Down

0 comments on commit 643b411

Please sign in to comment.