Apply suggestions from code review
Co-authored-by: Néstor Soriano <nestor.soriano@automattic.com>
This commit is contained in:
parent
5445d34283
commit
701490b13e
|
@ -63,10 +63,10 @@ abstract class WC_Legacy_Cart {
|
||||||
'tax_display_cart',
|
'tax_display_cart',
|
||||||
'fees',
|
'fees',
|
||||||
),
|
),
|
||||||
array_keys( $this->cart_session_data )
|
is_array( $this->cart_session_data ) ? array_keys( $this->cart_session_data ) : array()
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( in_array( $key, $legacy_keys, true ) ) {
|
if ( in_array( $name, $legacy_keys, true ) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue