Skip to content

Commit

Permalink
Re-support wpml
Browse files Browse the repository at this point in the history
  • Loading branch information
iverok committed Oct 29, 2020
1 parent 6e16709 commit e663b84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions WC_Gateway_Vipps.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ public function shipping_details_callback_url($token='') {
// IOK 2018-05-18
public function consent_removal_callback_url () {
if ( !get_option('permalink_structure')) {
return set_url_scheme(home_url(),'https') . "/?vipps-consent-removal&callback=";
return untrailingslashit(set_url_scheme(home_url(),'https')) . "/?vipps-consent-removal&callback=";
} else {
return set_url_scheme(home_url(),'https') . "/vipps-consent-removal/?callback=";
return untrailingslashit(set_url_scheme(home_url(),'https')) . "/vipps-consent-removal/?callback=";
}
}

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ From version 1.1.13 you can also modify the javascript using the new WP hooks li
== Changelog ==

= 2020.1x.xx version 1.6.1 =
Bugs fixed
Bugs fixed: WPML support reenabled thanks to a bug report by @kodeks

= 2020.10.19 version 1.6.0 =
Integrate with Login with Vipps and provide again the "create users when using express checkout" checkbox. If you choose too, this will then create (and log in) users when using express checkout.
Expand Down

0 comments on commit e663b84

Please sign in to comment.