|
@@ 137-146 (lines=10) @@
|
| 134 |
|
return; |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
if ( empty( $show_phpver_notice ) ) { |
| 138 |
|
if ( version_compare( phpversion(), WC_STRIPE_MIN_PHP_VER, '<' ) ) { |
| 139 |
|
/* translators: 1) int version 2) int version */ |
| 140 |
|
$message = __( 'WooCommerce Stripe - The minimum PHP version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
| 141 |
|
|
| 142 |
|
$this->add_admin_notice( 'phpver', 'error', sprintf( $message, WC_STRIPE_MIN_PHP_VER, phpversion() ), true ); |
| 143 |
|
|
| 144 |
|
return; |
| 145 |
|
} |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
if ( empty( $show_wcver_notice ) ) { |
| 149 |
|
if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) { |
|
@@ 148-157 (lines=10) @@
|
| 145 |
|
} |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
if ( empty( $show_wcver_notice ) ) { |
| 149 |
|
if ( version_compare( WC_VERSION, WC_STRIPE_MIN_WC_VER, '<' ) ) { |
| 150 |
|
/* translators: 1) int version 2) int version */ |
| 151 |
|
$message = __( 'WooCommerce Stripe - The minimum WooCommerce version required for this plugin is %1$s. You are running %2$s.', 'woocommerce-gateway-stripe' ); |
| 152 |
|
|
| 153 |
|
$this->add_admin_notice( 'wcver', 'notice notice-warning', sprintf( $message, WC_STRIPE_MIN_WC_VER, WC_VERSION ), true ); |
| 154 |
|
|
| 155 |
|
return; |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
if ( empty( $show_curl_notice ) ) { |
| 160 |
|
if ( ! function_exists( 'curl_init' ) ) { |