woocommerce/includes/legacy
Justin Shreve cd92351dd7 Fix direct property access for coupon amount.
In 2.6, you could access the amount via $coupon->coupon_amount. Or legacy code incorrectly handles $coupon->amount instead. 7778583340/includes/class-wc-coupon.php (L102)

This PR handles both since the RCs and betas allowed `->amount` and I don't want to break anything that may be accessing it that way..

To Test:
* `phpunit --filter=test_coupon_backwards_compat_props_use_correct_getters`
2017-03-09 10:34:45 -08:00
..
abstract-wc-legacy-order.php Updates after PR review 2017-03-09 12:55:33 +01:00
abstract-wc-legacy-payment-token.php Move legacy classes to correct dir 2017-02-16 16:39:56 +00:00
abstract-wc-legacy-product.php Legacy variation meta handling 2017-02-28 10:29:08 +00:00
class-wc-legacy-coupon.php Fix direct property access for coupon amount. 2017-03-09 10:34:45 -08:00
class-wc-legacy-customer.php Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
class-wc-legacy-shipping-zone.php Fix wording on deprecation messages 2017-01-30 23:40:21 -06:00