| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | * |
| 27 | 27 | * @var bool |
| 28 | 28 | * @defender_property |
| 29 | 29 | */ |
| 30 | - public $enabled = false; | |
| 30 | + public bool $enabled = false; | |
| 31 | 31 | /** |
| 32 | 32 | * Maximum attempt before get locked. |
| 33 | 33 | * |
| 34 | 34 | * @var int |
| @@ -134,9 +134,9 @@ | ||
| 134 | 134 | * @filter wp_defender_banned_usernames |
| 135 | 135 | * @since 2.4.7 |
| 136 | 136 | */ |
| 137 | 137 | $usernames = apply_filters( 'wp_defender_banned_usernames', $this->username_blacklist ); |
| 138 | - if ( empty( $usernames ) ) { | |
| 138 | + if ( '' === trim( $usernames ) ) { | |
| 139 | 139 | return array(); |
| 140 | 140 | } |
| 141 | 141 | $usernames = str_replace( array( "\r\n", "\r", "\n" ), ' ', $this->username_blacklist ); |
| 142 | 142 | $usernames = explode( ' ', $usernames ); |