Last active
January 22, 2022 08:35
-
-
Save webzunft/c7be045a8360e5e08c29819473dcd85d to your computer and use it in GitHub Desktop.
Check cURL version in EDD Software Licensing > activate_license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( is_wp_error( $response ) ) { | |
$body = wp_remote_retrieve_body( $response ); | |
if ( $body ) { | |
return $body; | |
} else { | |
$curl = curl_version(); | |
return __( 'License couldn’t be activated. Please try again later.', 'advanced-ads' ) . " (cURL {$curl['version']})"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment