Skip to content

Commit 3dd563c

Browse files
VC-3438 fix wordpress.com connection request (#2524)
1 parent f7f0e64 commit 3dd563c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

visualcomposer/Modules/License/LicenseController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ protected function activateWpComSubscription()
205205
$optionsHelper = vchelper('Options');
206206

207207
$activeSubscriptions = get_option('wpcom_active_subscriptions', []);
208-
if (empty($activeSubscriptions)) {
208+
if (empty($activeSubscriptions['visualcomposer-wpcom'])) {
209209
return;
210210
}
211211
$activeSubscriptionsChecksum = md5(wp_json_encode($activeSubscriptions));
212212
// if transient exists skip, so nothing changed in subscriptions
213213
if ($optionsHelper->getTransient('vcv:wp-com:activation:request:' . $activeSubscriptionsChecksum)) {
214214
return;
215215
}
216-
$blogId = null;
216+
217217
if (class_exists('Jetpack_Options')) {
218218
$blogId = \Jetpack_Options::get_option('id');
219219
} else {

0 commit comments

Comments
 (0)