Merge pull request #12474 from franticpsyx/wc-27-legacy-product-class-magic-get
[2.7] Add 'id' to WC_Abstract_Legacy_Product::__isset
This commit is contained in:
commit
9a983261df
|
@ -33,6 +33,7 @@ abstract class WC_Abstract_Legacy_Product extends WC_Data {
|
|||
public function __isset( $key ) {
|
||||
return
|
||||
in_array( $key, array_merge( array(
|
||||
'id',
|
||||
'variation_id',
|
||||
'variation_data',
|
||||
'variation_has_stock',
|
||||
|
|
Loading…
Reference in New Issue