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/model/setting/class-password-reset.php +3 -1 5.7.1 → 6.3.0 View file →
@@ -103,12 +103,14 @@
103 103 *
104 104 * @return bool
105 105 */
106 106 public function is_active(): bool {
107 - return (bool) apply_filters(
107 + $active = apply_filters(
108 108 'wd_password_reset_active',
109 109 $this->expire_force && count( $this->user_roles ) > 0 && $this->force_time > 0
110 110 );
111 +
112 + return is_bool( $active ) ? $active : (bool) $active;
111 113 }
112 114
113 115 /**
114 116 * Returns the module name for Password Reset.