@@ 180-184 (lines=5) @@ | ||
177 | * found or false if the environment has no problems. |
|
178 | */ |
|
179 | static function get_environment_warning() { |
|
180 | if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) { |
|
181 | $message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe', 'woocommerce-gateway-stripe' ); |
|
182 | ||
183 | return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() ); |
|
184 | } |
|
185 | ||
186 | if ( ! defined( 'WC_VERSION' ) ) { |
|
187 | return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' ); |
|
@@ 190-194 (lines=5) @@ | ||
187 | return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' ); |
|
188 | } |
|
189 | ||
190 | if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) { |
|
191 | $message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe', 'woocommerce-gateway-stripe' ); |
|
192 | ||
193 | return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION ); |
|
194 | } |
|
195 | ||
196 | if ( ! function_exists( 'curl_init' ) ) { |
|
197 | return __( 'WooCommerce Stripe - cURL is not installed.', 'woocommerce-gateway-stripe' ); |