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/controller/class-security-headers.php +6 -3 6.1.0 → 6.3.0 View file →
@@ -235,11 +235,14 @@
235 235 *
236 236 * @return array Returns an array of configuration strings.
237 237 */
238 238 public function config_strings( array $config ): array {
239 - $active = ! empty( $config['sh_xframe'] ) || ! empty( $config['sh_xss_protection'] )
240 - || ! empty( $config['sh_content_type_options'] ) || ! empty( $config['sh_feature_policy'] )
241 - || ! empty( $config['sh_strict_transport'] ) || ! empty( $config['sh_referrer_policy'] );
239 + $active = ( isset( $config['sh_xframe'] ) && $config['sh_xframe'] )
240 + || ( isset( $config['sh_xss_protection'] ) && $config['sh_xss_protection'] )
241 + || ( isset( $config['sh_content_type_options'] ) && $config['sh_content_type_options'] )
242 + || ( isset( $config['sh_feature_policy'] ) && $config['sh_feature_policy'] )
243 + || ( isset( $config['sh_strict_transport'] ) && $config['sh_strict_transport'] )
244 + || ( isset( $config['sh_referrer_policy'] ) && $config['sh_referrer_policy'] );
242 245
243 246 return array(
244 247 \WP_Defender\Model\Setting\Security_Headers::get_module_name() . ' '
245 248 . ( $active ? esc_html__( 'active', 'defender-security' ) : esc_html__( 'inactive', 'defender-security' ) ),