Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the option to import settings from other plugins on first install. #264

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
\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 @@
$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
Loading