Skip to content

Commit

Permalink
Fix the option to import settings from other plugins on first install.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Sep 25, 2023
1 parent 09dfe0e commit 5b55e32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Installation/PluginDataImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check warning on line 26 in src/Installation/PluginDataImport.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 12 space(s) between "'firstInstall'" and double arrow, but found 11.
'importAvailable' => false,

Check warning on line 27 in src/Installation/PluginDataImport.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Array double arrow not aligned correctly; expected 9 space(s) between "'importAvailable'" and double arrow, but found 8.
'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' ) ),
Expand All @@ -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;

Check warning on line 45 in src/Installation/PluginDataImport.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Equals sign not aligned with surrounding assignments; expected 8 spaces but found 7 spaces
}
}

Expand Down

0 comments on commit 5b55e32

Please sign in to comment.