Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WC 4.4.1 Compatibility Bump #225

Merged
merged 3 commits into from
Feb 3, 2021
Merged

WC 4.4.1 Compatibility Bump #225

merged 3 commits into from
Feb 3, 2021

Conversation

chickenn00dle
Copy link
Contributor

@chickenn00dle chickenn00dle commented Aug 20, 2020

This PR bumps the WC tested up to header to 4.4.1.

This also does the following:

  • replaces the use of the deprecated WC_Subscription::update_manual with WC_Subscription::set_requires_manual_renewal.
  • Replaces direct access of subs ID with call to get_id()

I tested this with the latest versions of WC, WC Subs, and WC Memberships.

Closes #223

@wigglemuff
Copy link
Contributor

@chickenn00dle This LGTM. However, the Travis CI build fails.

$ bash tests/bin/install.sh wcsie_test root '' localhost $WP_VERSION

0.70s$ bash tests/bin/travis.sh before

WooCommerce Installed

Cloning into '../woocommerce-subscriptions'...

remote: Repository not found.

fatal: repository 'https://[secure]@github.com/Prospress/woocommerce-subscriptions.git/' not found

The command "bash tests/bin/travis.sh before" failed and exited with 128 during .

I think we'll need to fix the subscriptions repo URL here: https://github.com/woocommerce/woocommerce-subscriptions-importer-exporter/blob/master/tests/bin/travis.sh. I'll do it and see if that helps.

@LukeAbell
Copy link

@codestor4 @chickenn00dle can you get this merged?

This replaces the use of WC_Subscription::update_manual which was
deprecated in WC Subscriptions in version 2.2.0 in favor of
WC_Subscriptions::set_requires_manual_renewal.
This replaces direct access of subscription ID with call to get_id() as
direct property access is no longer supported as of WC 3.0.
This updates the WC compat headers to reflect this has been tested up to
4.4.1.
@wigglemuff wigglemuff force-pushed the wc_4.4_compatibility branch from 8f1b941 to 62e3607 Compare February 3, 2021 10:59
@wigglemuff
Copy link
Contributor

I did a rebase of this with master with the hope that these changes would help fix the Travis build issue.

Travis build still fails but for other reasons (PHPCS issues).

We can fix PHPCS issues in a separate PR. I'll go ahead and merge this now!

@wigglemuff wigglemuff merged commit fc6e9a8 into master Feb 3, 2021
@LukeAbell
Copy link

Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is plugin compatible with Woocommerce 4.0?
3 participants