Skip to content

Conversation

albingeorge
Copy link
Contributor

Use get_currency() or get_order_currency() based on the WooCommerce version.

Tested against the WooCommerce versions 3.1.0 and 2.6.8.

Use get_currency() or get_order_currency() based on the WooCommerce version.
@albingeorge albingeorge force-pushed the backward_compatibility branch from 0d78618 to 5d35c5b Compare July 5, 2017 09:58
@mayankamencherla mayankamencherla merged commit 85d360f into master Jul 5, 2017
@albingeorge albingeorge deleted the backward_compatibility branch July 5, 2017 10:31
@captn3m0
Copy link
Contributor

captn3m0 commented Jul 5, 2017

👍 for the quick fix.

I'd have preferred a version_compare check though, like we do it in other places.

@albingeorge
Copy link
Contributor Author

@captn3m0 I used the same version_compare block we use in prefill arguments for this.

@captn3m0
Copy link
Contributor

captn3m0 commented Jul 5, 2017

Oops, was not showing in the default diff. 👍

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

Successfully merging this pull request may close these issues.

3 participants