PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
jetpack
/
vendor
/
automattic
/
jetpack-sync
/
src
/
modules
<?php /** * Protect sync module. * * @package automattic/jetpack-sync */ namespace Automattic\Jetpack\Sync\Modules; use Automattic\Jetpack\Constants as Jetpack_Constants; /** * Class to handle sync for Protect. * Logs BruteProtect failed logins via sync. */ class Protect extends Module { /** * Sync module name. * * @access public * * @return string */ public function name() { return 'protect'; } /** * Initialize Protect action listeners. * * @access public * * @param callable $callback Action handler callable. */ public 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 ); } /** * Maybe log a failed login attempt. * * @access public * * @param array $failed_attempt Failed attempt data. */ public 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 ); } } }
[-] class-options.php
[edit]
[-] class-module.php
[edit]
[-] class-import.php
[edit]
[-] class-full-sync.php
[edit]
[+]
..
[-] class-callables.php
[edit]
[-] class-protect.php
[edit]
[-] class-stats.php
[edit]
[-] class-meta.php
[edit]
[-] class-term-relationships.php
[edit]
[-] class-attachments.php
[edit]
[-] class-terms.php
[edit]
[-] class-plugins.php
[edit]
[-] class-posts.php
[edit]
[-] class-updates.php
[edit]
[-] class-wp-super-cache.php
[edit]
[-] class-woocommerce.php
[edit]
[-] class-comments.php
[edit]
[-] class-menus.php
[edit]
[-] class-users.php
[edit]
[-] class-full-sync-immediately.php
[edit]
[-] class-network-options.php
[edit]
[-] class-constants.php
[edit]
[-] class-themes.php
[edit]