PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3 16.3-beta 16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 All 508 releases
← 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