Skip to content

Commit

Permalink
VC-3438 fix wordpress.com connection request (#2524)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegApanovich authored Feb 5, 2024
1 parent f7f0e64 commit 3dd563c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visualcomposer/Modules/License/LicenseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ protected function activateWpComSubscription()
$optionsHelper = vchelper('Options');

$activeSubscriptions = get_option('wpcom_active_subscriptions', []);
if (empty($activeSubscriptions)) {
if (empty($activeSubscriptions['visualcomposer-wpcom'])) {
return;
}
$activeSubscriptionsChecksum = md5(wp_json_encode($activeSubscriptions));
// if transient exists skip, so nothing changed in subscriptions
if ($optionsHelper->getTransient('vcv:wp-com:activation:request:' . $activeSubscriptionsChecksum)) {
return;
}
$blogId = null;

if (class_exists('Jetpack_Options')) {
$blogId = \Jetpack_Options::get_option('id');
} else {
Expand Down

0 comments on commit 3dd563c

Please sign in to comment.