@@ 243-247 (lines=5) @@ | ||
240 | * found or false if the environment has no problems. |
|
241 | */ |
|
242 | static function get_environment_warning() { |
|
243 | if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) { |
|
244 | $message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
|
245 | ||
246 | return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() ); |
|
247 | } |
|
248 | ||
249 | if ( ! defined( 'WC_VERSION' ) ) { |
|
250 | return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' ); |
|
@@ 253-257 (lines=5) @@ | ||
250 | return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' ); |
|
251 | } |
|
252 | ||
253 | if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) { |
|
254 | $message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
|
255 | ||
256 | return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION ); |
|
257 | } |
|
258 | ||
259 | if ( ! function_exists( 'curl_init' ) ) { |
|
260 | return __( 'WooCommerce Stripe - cURL is not installed.', 'woocommerce-gateway-stripe' ); |