Skip to content

Commit

Permalink
Update woocommerce/class-sv-wc-plugin-compatibility.php
Browse files Browse the repository at this point in the history
Co-authored-by: Nabeel Molham <[email protected]>
  • Loading branch information
unfulvio and nmolham-godaddy authored Sep 26, 2024
1 parent cc2a21b commit 328ea5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions woocommerce/class-sv-wc-plugin-compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ protected static function get_wc_subscriptions_version() : ?string {

if ( class_exists( 'WC_Subscriptions' ) && ! empty( \WC_Subscriptions::$version ) ) {
$version = \WC_Subscriptions::$version;
}

if ( ! $version && class_exists( 'WC_Subscriptions_Core_Plugin' ) ) {
} elseif ( class_exists( 'WC_Subscriptions_Core_Plugin' ) ) {
if ( is_callable( [ \WC_Subscriptions_Core_Plugin::class, 'instance' ] ) ) {

$instance = \WC_Subscriptions_Core_Plugin::instance();
Expand Down

0 comments on commit 328ea5c

Please sign in to comment.