Skip to content

Commit

Permalink
fix: no longer use default context for product names
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcuzz committed Feb 4, 2022
1 parent b97d5ed commit 769d7bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: Vipps, EverydayAS
Tags: vipps, recurring payments, subscriptions, woocommerce, woocommerce subscriptions
Requires at least: 5.0
Tested up to: 5.8
Tested up to: 5.9
Stable tag: trunk
Requires PHP: 7.0
License: AGPLv3.0 or later
Expand Down Expand Up @@ -158,6 +158,9 @@ Alternatively you could look into using WooCommerce "Early renewals": [https://d

==== End Log ====

= 1.12.4 =
* Fixed: Product names no longer use the default context, meaning it will no longer get overridden by themes or plugins and show HTML in the Vipps app or app-switch screen.

= 1.12.3 =
* Fixed: Initial charge description no longer contains " + " when no extra products are purchased.
* Fixed: Filling in 0 in the trial field tricking us into adding a campaign to the product, also resulting in an empty `initialCharge.description` and being unable to check out.
Expand Down
2 changes: 1 addition & 1 deletion includes/wc-vipps-recurring-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public static function get_failure_description_for_order( $order ) {
public static function get_product_description( WC_Product $product ): string {
$source = self::get_meta( $product, self::META_PRODUCT_DESCRIPTION_SOURCE );

$description = $product->get_name();
$description = $product->get_name( 'original' );
if ( $source === 'short_description' ) {
$description = $product->get_short_description();
}
Expand Down
8 changes: 4 additions & 4 deletions woo-vipps-recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* Description: Offer recurring payments with Vipps for WooCommerce Subscriptions
* Author: Everyday AS
* Author URI: https://everyday.no
* Version: 1.12.3
* Version: 1.12.4
* Requires at least: 4.4
* Tested up to: 5.8
* WC tested up to: 6.0
* Tested up to: 5.9
* WC tested up to: 6.1
* Text Domain: woo-vipps-recurring
* Domain Path: /languages
*/
Expand All @@ -17,7 +17,7 @@

// phpcs:disable WordPress.Files.FileName

define( 'WC_VIPPS_RECURRING_VERSION', '1.12.3' );
define( 'WC_VIPPS_RECURRING_VERSION', '1.12.4' );

add_action( 'plugins_loaded', 'woocommerce_gateway_vipps_recurring_init' );

Expand Down

0 comments on commit 769d7bb

Please sign in to comment.