Skip to content

Commit

Permalink
fix: no longer use the wp_safe_remote_post function and instead use…
Browse files Browse the repository at this point in the history
… `wp_remote_post` because it causes problems on some hosts, and our calls are to endpoints returned by Vipps either way
  • Loading branch information
Marcuzz committed Jan 3, 2024
1 parent 8582b26 commit 7f991e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ Alternatively you could look into using WooCommerce "Early renewals": [https://d

== Changelog ==

= 1.17.3 =
* Fixed: No longer use the `wp_safe_remote_post` function and instead use `wp_remote_post` because it causes problems on some hosts, and our calls are to endpoints returned by Vipps either way.

= 1.17.2 =
* Fixed: Hide this gateway if there are no subscription products in the cart.

Expand Down
2 changes: 1 addition & 1 deletion includes/wc-vipps-recurring-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ private function http_call( string $endpoint, string $method, array $data = [],
'body' => $body,
];

$response = wp_safe_remote_post( $url, $args );
$response = wp_remote_post( $url, $args );

// throw WP error as a WC_Vipps_Recurring_Exception if response is not valid
$default_error = '';
Expand Down
4 changes: 2 additions & 2 deletions woo-vipps-recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Offer recurring payments with Vipps for WooCommerce Subscriptions
* Author: Everyday AS
* Author URI: https://everyday.no
* Version: 1.17.2
* Version: 1.17.3
* Requires at least: 4.4
* Tested up to: 6.4
* WC tested up to: 8.2
Expand All @@ -17,7 +17,7 @@

// phpcs:disable WordPress.Files.FileName

define( 'WC_VIPPS_RECURRING_VERSION', '1.17.2' );
define( 'WC_VIPPS_RECURRING_VERSION', '1.17.3' );


// declare compatibility with WooCommerce HPOS
Expand Down

0 comments on commit 7f991e9

Please sign in to comment.