From 5b55e32dc0150ece2107b3b5dbd376da7ba83b82 Mon Sep 17 00:00:00 2001 From: Torben Lundsgaard Date: Mon, 25 Sep 2023 09:37:20 +0200 Subject: [PATCH] Fix the option to import settings from other plugins on first install. --- src/Installation/PluginDataImport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Installation/PluginDataImport.php b/src/Installation/PluginDataImport.php index e9fca13..2353d84 100644 --- a/src/Installation/PluginDataImport.php +++ b/src/Installation/PluginDataImport.php @@ -23,8 +23,8 @@ public function get_all(): array { \delete_transient( 'gtmkit_first_install' ); $plugin_data = [ - 'first_install' => $first_install, - 'import_available' => false, + 'firstInstall' => $first_install, + 'importAvailable' => false, 'woocommerce_integration' => $this->is_plugin_active( 'woocommerce/woocommerce.php' ), 'cf7_integration' => $this->is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ), 'edd_integration' => ( $this->is_plugin_active( 'easy-digital-downloads/easy-digital-downloads.php' ) || $this->is_plugin_active( 'easy-digital-downloads-pro/easy-digital-downloads.php' ) ), @@ -42,7 +42,7 @@ public function get_all(): array { $settings = $this->get( $plugin ); if ( ! empty( $settings ) ) { $plugin_data['import_data'][ $plugin ] = $settings; - $plugin_data['import_available'] = true; + $plugin_data['importAvailable'] = true; } }