| @@ 251-259 (lines=9) @@ | ||
| 248 | * WooCommerce Analytics should only be available |
|
| 249 | * when running WooCommerce 3+ |
|
| 250 | */ |
|
| 251 | if ( |
|
| 252 | 'woocommerce-analytics' === $module['module'] |
|
| 253 | && ( |
|
| 254 | ! class_exists( 'WooCommerce' ) |
|
| 255 | || version_compare( WC_VERSION, '3.0', '<' ) |
|
| 256 | ) |
|
| 257 | ) { |
|
| 258 | return false; |
|
| 259 | } |
|
| 260 | ||
| 261 | /* |
|
| 262 | * In Offline mode, modules that require a site or user |
|
| @@ 314-322 (lines=9) @@ | ||
| 311 | * WooCommerce Analytics should only be available |
|
| 312 | * when running WooCommerce 3+ |
|
| 313 | */ |
|
| 314 | if ( |
|
| 315 | 'woocommerce-analytics' === $module['module'] |
|
| 316 | && ( |
|
| 317 | ! class_exists( 'WooCommerce' ) |
|
| 318 | || version_compare( WC_VERSION, '3.0', '<' ) |
|
| 319 | ) |
|
| 320 | ) { |
|
| 321 | return __( 'Requires WooCommerce 3+ plugin', 'jetpack' ); |
|
| 322 | } |
|
| 323 | ||
| 324 | /* |
|
| 325 | * In Offline mode, modules that require a site or user |
|