@@ 145-149 (lines=5) @@ | ||
142 | * @version 4.0.0 |
|
143 | */ |
|
144 | public function get_environment_warning() { |
|
145 | if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) { |
|
146 | /* translators: 1) int version 2) int version */ |
|
147 | $message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
|
148 | ||
149 | return sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() ); |
|
150 | } |
|
151 | ||
152 | if ( ! defined( 'WC_VERSION' ) ) { |
|
@@ 156-160 (lines=5) @@ | ||
153 | return __( 'WooCommerce Stripe requires WooCommerce to be activated to work.', 'woocommerce-gateway-stripe' ); |
|
154 | } |
|
155 | ||
156 | if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) { |
|
157 | /* translators: 1) int version 2) int version */ |
|
158 | $message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
|
159 | ||
160 | return sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION ); |
|
161 | } |
|
162 | ||
163 | if ( ! function_exists( 'curl_init' ) ) { |