← All changes
|
jetpack_vendor/automattic/jetpack-sync/src/modules/class-protect.php
+5
-1
13.8.3
→
16.3-a.7
View file →
| @@ -9,8 +9,12 @@ | ||
| 9 | 9 | |
| 10 | 10 | use Automattic\Jetpack\Constants as Jetpack_Constants; |
| 11 | 11 | use Automattic\Jetpack\Waf\Brute_Force_Protection\Brute_Force_Protection; |
| 12 | 12 | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit( 0 ); | |
| 15 | +} | |
| 16 | + | |
| 13 | 17 | /** |
| 14 | 18 | * Class to handle sync for Protect. |
| 15 | 19 | * Logs BruteProtect failed logins via sync. |
| 16 | 20 | */ |
| @@ -49,9 +53,9 @@ | ||
| 49 | 53 | $brute_force_protection = Brute_Force_Protection::instance(); |
| 50 | 54 | return $brute_force_protection->has_login_ability(); |
| 51 | 55 | } |
| 52 | 56 | |
| 53 | - // If the login ability can not be determined, the feature is not active, | |
| 57 | + // If the login ability cannot be determined, the feature is not active, | |
| 54 | 58 | // or something is wrong, default to not syncing failed login attempts. |
| 55 | 59 | return false; |
| 56 | 60 | } |
| 57 | 61 | |