We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd1e99 commit ca38776Copy full SHA for ca38776
lib/woocommerce-api.php
@@ -9,11 +9,11 @@
9
$dir = dirname( __FILE__ ) . '/woocommerce-api/';
10
11
// required functions
12
-if ( ! function_exists( 'curl_init' ) ) {
+if ( ! extension_loaded( 'curl' ) ) {
13
throw new Exception( 'WooCommerce REST API client requires the cURL PHP extension.' );
14
}
15
16
-if ( ! function_exists( 'json_decode' ) ) {
+if ( ! extension_loaded( 'json' ) ) {
17
throw new Exception( 'WooCommerce REST API client needs the JSON extension.' );
18
19
0 commit comments