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