@@ 213-217 (lines=5) @@ | ||
210 | * @version 4.0.0 |
|
211 | */ |
|
212 | public function get_environment_warning() { |
|
213 | if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) { |
|
214 | /* translators: 1) int version 2) int version */ |
|
215 | $message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
|
216 | ||
217 | return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() ); |
|
218 | } |
|
219 | ||
220 | if ( ! defined( 'WC_VERSION' ) ) { |
|
@@ 224-228 (lines=5) @@ | ||
221 | return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' ); |
|
222 | } |
|
223 | ||
224 | if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) { |
|
225 | /* translators: 1) int version 2) int version */ |
|
226 | $message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
|
227 | ||
228 | return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION ); |
|
229 | } |
|
230 | ||
231 | if ( ! function_exists( 'curl_init' ) ) { |