diff --git a/includes/api/class-wc-rest-payment-gateways-controller.php b/includes/api/class-wc-rest-payment-gateways-controller.php index 947a760bb72..baa09e4c137 100644 --- a/includes/api/class-wc-rest-payment-gateways-controller.php +++ b/includes/api/class-wc-rest-payment-gateways-controller.php @@ -377,7 +377,7 @@ class WC_REST_Payment_Gateways_Controller extends WC_REST_Controller { ), 'settings' => array( 'description' => __( 'Payment gateway settings.', 'woocommerce' ), - 'type' => 'array', + 'type' => 'object', 'context' => array( 'view', 'edit' ), ), ), diff --git a/includes/api/class-wc-rest-products-controller.php b/includes/api/class-wc-rest-products-controller.php index 26f8cd40c0f..627e9376e8b 100644 --- a/includes/api/class-wc-rest-products-controller.php +++ b/includes/api/class-wc-rest-products-controller.php @@ -2122,7 +2122,7 @@ class WC_REST_Products_Controller extends WC_REST_Posts_Controller { ), 'images' => array( 'description' => __( 'List of images.', 'woocommerce' ), - 'type' => 'array', + 'type' => 'object', 'context' => array( 'view', 'edit' ), 'items' => array( 'type' => 'object', diff --git a/includes/api/class-wc-rest-shipping-zone-methods-controller.php b/includes/api/class-wc-rest-shipping-zone-methods-controller.php index bd89247ea5b..06eb19a1805 100644 --- a/includes/api/class-wc-rest-shipping-zone-methods-controller.php +++ b/includes/api/class-wc-rest-shipping-zone-methods-controller.php @@ -453,7 +453,7 @@ class WC_REST_Shipping_Zone_Methods_Controller extends WC_REST_Shipping_Zones_Co ), 'settings' => array( 'description' => __( 'Shipping method settings.', 'woocommerce' ), - 'type' => 'array', + 'type' => 'object', 'context' => array( 'view', 'edit' ), ), ), diff --git a/includes/data-stores/class-wc-customer-data-store.php b/includes/data-stores/class-wc-customer-data-store.php index 4a3bc7aa900..94d3a58d06f 100644 --- a/includes/data-stores/class-wc-customer-data-store.php +++ b/includes/data-stores/class-wc-customer-data-store.php @@ -19,6 +19,7 @@ class WC_Customer_Data_Store extends WC_Data_Store_WP implements WC_Customer_Dat * @var array */ protected $internal_meta_keys = array( + 'locale', 'billing_postcode', 'billing_city', 'billing_address_1',