Merge pull request #14946 from woocommerce/fix/14944

Correct variable name in order structured data
This commit is contained in:
Claudio Sanches 2017-05-08 13:52:18 -03:00 committed by GitHub
commit e942d69664
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ class WC_Structured_Data {
$markup = array();
$markup['@type'] = 'Order';
$markup['url'] = $order_url;
$markup['orderStatus'] = isset( $order_status[ $order->get_status() ] ) ? $order_status[ $order->get_status() ] : '';
$markup['orderStatus'] = isset( $order_statuses[ $order->get_status() ] ) ? $order_statuses[ $order->get_status() ] : '';
$markup['orderNumber'] = $order->get_order_number();
$markup['orderDate'] = $order->get_date_created()->format( 'c' );
$markup['acceptedOffer'] = $markup_offers;