We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72ad257 commit 9d37ef7Copy full SHA for 9d37ef7
src/Admin/Upgrades.php
@@ -11,6 +11,7 @@
11
12
use Exception;
13
use Plausible\Analytics\WP\Admin\Provisioning\Integrations;
14
+use Plausible\Analytics\WP\Client;
15
use Plausible\Analytics\WP\Helpers;
16
17
/**
@@ -292,6 +293,11 @@ public function upgrade_to_230() {
292
293
$edd_provisioning = new Provisioning\Integrations\EDD( new Integrations() );
294
$provisioning = new Provisioning();
295
296
+ // No token entered.
297
+ if ( ! $provisioning->client instanceof Client ) {
298
+ return;
299
+ }
300
+
301
$provisioning->maybe_create_custom_properties( [], $settings );
302
$edd_provisioning->maybe_create_edd_funnel( [], $settings );
303
}
0 commit comments