Skip to content

Commit

Permalink
Merge pull request #225 from woocommerce/wc_4.4_compatibility
Browse files Browse the repository at this point in the history
WC 4.4.1 Compatibility Bump
  • Loading branch information
wigglemuff authored Feb 3, 2021
2 parents 5d4b647 + 62e3607 commit fc6e9a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions includes/class-wcs-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ public static function import_subscription( $data ) {
}

if ( $set_manual || $requires_manual_renewal ) {
$subscription->update_manual();
$subscription->set_requires_manual_renewal( true );
}

if ( ! empty( $data[ self::$fields['order_notes'] ] ) ) {
Expand Down Expand Up @@ -467,7 +467,7 @@ public static function import_subscription( $data ) {

if ( self::$add_memberships ) {
foreach ( $order_items as $product_id ) {
self::maybe_add_memberships( $user_id, $subscription->id, $product_id );
self::maybe_add_memberships( $user_id, $subscription->get_id(), $product_id );
}
}
}
Expand Down Expand Up @@ -606,7 +606,7 @@ public static function set_payment_meta( $subscription, $data ) {
} else {
$warnings[] = sprintf( esc_html__( 'The payment method "%s" is either not enabled or does not support the new features of Subscriptions 2.0 and can not be properly attached to your subscription. This subscription has been set to manual renewals.', 'wcs-import-export' ), $payment_method );
}
$subscription->update_manual();
$subscription->set_requires_manual_renewal( true );
}
}
return $warnings;
Expand Down
4 changes: 2 additions & 2 deletions wcs-importer-exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
* Author URI: http://prospress.com
* License: GPLv3
*
* WC requires at least: 3.0
* WC tested up to: 3.5
* WC requires at least: 3.0.0
* WC tested up to: 4.4.1
*
* GitHub Plugin URI: Prospress/woocommerce-subscriptions-importer-exporter
* GitHub Branch: master
Expand Down

0 comments on commit fc6e9a8

Please sign in to comment.