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