PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/component/class-user-agent.php +2 -5 6.0.1 → 6.3.0 View file →
@@ -92,13 +92,10 @@
92 92 $model->log = esc_html__( 'Locked out due to attempted login with banned user agent', 'defender-security' );
93 93 break;
94 94 }
95 95 $model->save();
96 - // The 'defender_notify' hook doesn't work, so send notify directly.
97 - $module = wd_di()->get( Firewall_Notification::class );
98 - if ( $module->check_options( $model ) ) {
99 - $module->send( $model );
100 - }
96 + // Notify directly because the 'defender_notify' hook isn't registered yet at firewall-time.
97 + wd_di()->get( Firewall_Notification::class )->notify_lockout( $model );
101 98 }
102 99
103 100 /**
104 101 * Queue hooks when this class init.