summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/sync/class.jetpack-sync-module-protect.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-protect.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-module-protect.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-protect.php b/plugins/jetpack/sync/class.jetpack-sync-module-protect.php
deleted file mode 100644
index a8dcd43e..00000000
--- a/plugins/jetpack/sync/class.jetpack-sync-module-protect.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-/**
- * logs bruteprotect failed logins via sync
- */
-class Jetpack_Sync_Module_Protect extends Jetpack_Sync_Module {
-
- function name() {
- return 'protect';
- }
-
- function init_listeners( $callback ) {
- add_action( 'jpp_log_failed_attempt', array( $this, 'maybe_log_failed_login_attempt' ) );
- add_action( 'jetpack_valid_failed_login_attempt', $callback );
- }
-
- function maybe_log_failed_login_attempt( $failed_attempt ) {
- $protect = Jetpack_Protect_Module::instance();
- if ( $protect->has_login_ability() && ! Jetpack_Constants::is_true( 'XMLRPC_REQUEST' ) ) {
- do_action( 'jetpack_valid_failed_login_attempt', $failed_attempt );
- }
- }
-}