Skip to content
Snippets Groups Projects
Commit c323c128 authored by dyszczo's avatar dyszczo
Browse files

compare fix

parent f8be9d99
Branches
Tags
1 merge request!8Feature/broken wc logger
Pipeline #6312 passed
......@@ -16,7 +16,7 @@ class WooCommerceCapture
const WOOCOMMERCE_AFTER_IS_LOADED_ACTION = 'woocommerce_loaded';
/** @var string Minimal version of WooCommerce supported by logger capture */
const SUPPORTED_WC_VERSION = '3.5';
const SUPPORTED_WC_VERSION = '3.5.0';
/**
* Is logger filter captured by library.
......@@ -81,7 +81,7 @@ class WooCommerceCapture
*/
public static function isSupportedWCVersion()
{
return version_compare(WC_VERSION, self::SUPPORTED_WC_VERSION, '>=') >= 0;
return version_compare(\WooCommerce::instance()->version, self::SUPPORTED_WC_VERSION, '>=');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment