Plugin Directory

Changeset 2775250


Ignore:
Timestamp:
08/25/2022 05:16:25 AM (3 years ago)
Author:
supportcandy
Message:

Fix: upgrader not checking inactive addons

Location:
supportcandy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • supportcandy/tags/3.0.7/upgrade/class-wpsc-upgrade-db-v2.php

    r2773484 r2775250  
    238238                    $errors[] = '<strong>' . $addon['name'] . '</strong> must be v3.0 and above. <a href="' . $plugins_url . '">Click here</a> to see updates.';
    239239
    240                 } elseif ( $addon['is_installed'] && $addon['version'] == '3.0.0' && ! $addon['is_active'] ) {
     240                } elseif ( $addon['is_installed'] && $addon['version'] >= '3.0.0' && ! $addon['is_active'] ) {
    241241
    242242                    $errors[] = '<strong>' . $addon['name'] . '</strong> must be active in order to upgrade data related to it.';
  • supportcandy/trunk/upgrade/class-wpsc-upgrade-db-v2.php

    r2773484 r2775250  
    238238                    $errors[] = '<strong>' . $addon['name'] . '</strong> must be v3.0 and above. <a href="' . $plugins_url . '">Click here</a> to see updates.';
    239239
    240                 } elseif ( $addon['is_installed'] && $addon['version'] == '3.0.0' && ! $addon['is_active'] ) {
     240                } elseif ( $addon['is_installed'] && $addon['version'] >= '3.0.0' && ! $addon['is_active'] ) {
    241241
    242242                    $errors[] = '<strong>' . $addon['name'] . '</strong> must be active in order to upgrade data related to it.';
Note: See TracChangeset for help on using the changeset viewer.