diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 1884cdc785..e67618022e 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -936,7 +936,7 @@ class WP_User { } // Must have ALL requested caps - $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args ); + $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this ); $capabilities['exist'] = true; // Everyone is allowed to exist foreach ( (array) $caps as $cap ) { if ( empty( $capabilities[ $cap ] ) )