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-strong-password.php +4 -2 5.7.1 → 6.3.0 View file →
@@ -66,12 +66,14 @@
66 66 *
67 67 * @return bool
68 68 */
69 69 public function is_active(): bool {
70 - return (bool) apply_filters(
70 + $enable = apply_filters(
71 71 'wd_strong_password_enable',
72 72 $this->enabled && count( $this->user_roles ) > 0
73 73 );
74 +
75 + return is_bool( $enable ) ? $enable : (bool) $enable;
74 76 }
75 77
76 78 /**
77 79 * Initializes the object before loading.
@@ -116,9 +118,9 @@
116 118 /**
117 119 * Get localized default message.
118 120 */
119 121 protected function get_default_message(): string {
120 - return __(
122 + return esc_html__(
121 123 "You are required to change your password because your password doesn't meet the strong password guidelines set by the administrator.",
122 124 'defender-security'
123 125 );
124 126 }