diff options
author | Yury German <blueknight@gentoo.org> | 2019-05-22 00:42:33 -0400 |
---|---|---|
committer | Yury German <blueknight@gentoo.org> | 2019-05-22 00:42:33 -0400 |
commit | e89abce1b01dda89efdf230101d1aa3c877b3b6c (patch) | |
tree | cfb27a564c1f4cfff30d18dbf591efd48283b154 /plugins/jetpack/sync/class.jetpack-sync-module-protect.php | |
parent | Adding Twentyninetten (diff) | |
download | blogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.tar.gz blogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.tar.bz2 blogs-gentoo-e89abce1b01dda89efdf230101d1aa3c877b3b6c.zip |
Updating of Plugins and Themes
List of Plugins updates --
akismet.4.1.2
google-authenticator.0.52
jetpack.7.3.1
List of Themes Updates --
mantra.3.2.0
twentyfifteen.2.5
twentyfourteen.2.7
Signed-off-by: Yury German <blueknight@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.php | 23 |
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 ); - } - } -} |