| @@ 243-251 (lines=9) @@ | ||
| 240 | * WooCommerce Analytics should only be available |
|
| 241 | * when running WooCommerce 3+ |
|
| 242 | */ |
|
| 243 | if ( |
|
| 244 | 'woocommerce-analytics' === $module['module'] |
|
| 245 | && ( |
|
| 246 | ! class_exists( 'WooCommerce' ) |
|
| 247 | || version_compare( WC_VERSION, '3.0', '<' ) |
|
| 248 | ) |
|
| 249 | ) { |
|
| 250 | return false; |
|
| 251 | } |
|
| 252 | ||
| 253 | /* |
|
| 254 | * In Offline mode, modules that require a site or user |
|
| @@ 306-314 (lines=9) @@ | ||
| 303 | * WooCommerce Analytics should only be available |
|
| 304 | * when running WooCommerce 3+ |
|
| 305 | */ |
|
| 306 | if ( |
|
| 307 | 'woocommerce-analytics' === $module['module'] |
|
| 308 | && ( |
|
| 309 | ! class_exists( 'WooCommerce' ) |
|
| 310 | || version_compare( WC_VERSION, '3.0', '<' ) |
|
| 311 | ) |
|
| 312 | ) { |
|
| 313 | return __( 'Requires WooCommerce 3+ plugin', 'jetpack' ); |
|
| 314 | } |
|
| 315 | ||
| 316 | /* |
|
| 317 | * In Offline mode, modules that require a site or user |
|