Merge pull request #13032 from woocommerce/fix/order-date-direct-access
Fix direct access to order_date property
This commit is contained in:
commit
247c9aff50
|
@ -138,7 +138,7 @@ class WC_Shortcode_Checkout {
|
|||
</li>
|
||||
<li class="date">
|
||||
<?php _e( 'Date:', 'woocommerce' ); ?>
|
||||
<strong><?php echo date_i18n( get_option( 'date_format' ), strtotime( $order->order_date ) ); ?></strong>
|
||||
<strong><?php echo date_i18n( get_option( 'date_format' ), $order->get_date_created() ); ?></strong>
|
||||
</li>
|
||||
<li class="total">
|
||||
<?php _e( 'Total:', 'woocommerce' ); ?>
|
||||
|
|
Loading…
Reference in New Issue