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-main-setting.php +22 -2 6.2.4 → 6.3.0 View file →
@@ -209,9 +209,9 @@
209 209 );
210 210
211 211 wp_enqueue_style(
212 212 $handle,
213 - WP_DEFENDER_BASE_URL . 'assets/css/showcase.css',
213 + WP_DEFENDER_BASE_URL . 'assets/css/core-ui.css',
214 214 array(),
215 215 DEFENDER_VERSION
216 216 );
217 217
@@ -417,9 +417,29 @@
417 417 *
418 418 * @return bool Returns true if the importer data is valid, false otherwise.
419 419 */
420 420 private function validate_importer( $importer ): bool {
421 - return $this->service->verify_config_data( $importer );
421 + if ( ! $this->service->verify_config_data( $importer ) || ! is_array( $importer['configs'] ) ) {
422 + return false;
423 + }
424 +
425 + $sample = $this->service->gather_data();
426 + foreach ( $importer['configs'] as $slug => $module ) {
427 + // Ignore whole modules unavailable on this site, such as Pro-only modules in Free builds.
428 + if ( ! isset( $sample[ $slug ] ) ) {
429 + continue;
430 + }
431 +
432 + if (
433 + ! is_array( $module )
434 + || ! is_array( $sample[ $slug ] )
435 + || array() !== array_diff_key( $module, $sample[ $slug ] )
436 + ) {
437 + return false;
438 + }
439 + }
440 +
441 + return true;
422 442 }
423 443
424 444 /**
425 445 * Import config.