v1.6.5
This commit is contained in:
parent
e568b54336
commit
c72a96e2a0
1 changed files with 69 additions and 46 deletions
|
|
@ -82,13 +82,13 @@ class IP_Restrictions {
|
|||
*
|
||||
* @since 1.3.0
|
||||
*
|
||||
* @param mixed $user Previously authenticated user or error.
|
||||
* @param string $username Submitted username.
|
||||
* @param string $password Submitted password.
|
||||
* @param mixed $user Previously authenticated user or error.
|
||||
* @param string|null $username Submitted username.
|
||||
* @param string|null $password Submitted password.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function maybe_block_denied_ip( mixed $user, string $username, string $password ): mixed {
|
||||
public function maybe_block_denied_ip( mixed $user, ?string $username, ?string $password ): mixed {
|
||||
unset( $username, $password );
|
||||
|
||||
$deny_list = $this->config->get_ip_deny();
|
||||
|
|
|
|||
Loading…
Reference in a new issue