Skip to content

Commit

Permalink
Merge pull request #50 from benharrop/update-gravityform-api
Browse files Browse the repository at this point in the history
Change gravityforms download URL as gravityhelp.com is now gone
  • Loading branch information
junaidbhura authored Feb 26, 2023
2 parents 6359e90 + db2d621 commit 4c6f414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/GravityForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct( $version = '', $slug = 'gravityforms' ) {
*/
public function getDownloadUrl() {
$http = new Http();
$response = unserialize( $http->post( 'https://www.gravityhelp.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=' . $this->slug . '&key=' . getenv( 'GRAVITY_FORMS_KEY' ) ) );
$response = unserialize( $http->post( 'https://gravityapi.com/wp-content/plugins/gravitymanager/api.php?op=get_plugin&slug=' . $this->slug . '&key=' . getenv( 'GRAVITY_FORMS_KEY' ) ) );
if ( ! empty( $response['download_url_latest'] ) ) {
return str_replace( 'http://', 'https://', $response['download_url_latest'] );
}
Expand Down

0 comments on commit 4c6f414

Please sign in to comment.