Map all deprecated keys in __isset()

This commit is contained in:
Claudio Sanches 2020-06-30 13:25:30 -03:00
parent 701490b13e
commit 54a94152ec
1 changed files with 25 additions and 1 deletions

View File

@ -60,8 +60,32 @@ abstract class WC_Legacy_Cart {
public function __isset( $name ) {
$legacy_keys = array_merge(
array(
'tax_display_cart',
'dp',
'prices_include_tax',
'round_at_subtotal',
'cart_contents_total',
'total',
'subtotal',
'subtotal_ex_tax',
'tax_total',
'fee_total',
'discount_cart',
'discount_cart_tax',
'shipping_total',
'shipping_tax_total',
'display_totals_ex_tax',
'display_cart_ex_tax',
'cart_contents_weight',
'cart_contents_count',
'coupons',
'taxes',
'shipping_taxes',
'coupon_discount_amounts',
'coupon_discount_tax_amounts',
'fees',
'tax',
'discount_total',
'tax_display_cart',
),
is_array( $this->cart_session_data ) ? array_keys( $this->cart_session_data ) : array()
);