Merge pull request #11662 from woothemes/fix/customer-api-avatar-url

[2.6] Fix avatar_url Customer API response
This commit is contained in:
Mike Jolley 2016-08-10 10:34:16 +01:00 committed by GitHub
commit 1f3d3853a3
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ class WC_REST_Customers_Controller extends WC_REST_Controller {
),
'orders_count' => wc_get_customer_order_count( $customer->ID ),
'total_spent' => wc_format_decimal( wc_get_customer_total_spent( $customer->ID ), 2 ),
'avatar_url' => wc_get_customer_avatar_url( $customer->customer_email ),
'avatar_url' => wc_get_customer_avatar_url( $customer->user_email ),
'billing' => array(
'first_name' => $customer->billing_first_name,
'last_name' => $customer->billing_last_name,