diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php index 56372bdff9f..93f283a0354 100644 --- a/includes/admin/class-wc-admin-post-types.php +++ b/includes/admin/class-wc-admin-post-types.php @@ -470,15 +470,6 @@ class WC_Admin_Post_Types { echo ''; break; - case 'billing_address' : - if ( $the_order->get_formatted_billing_address() ) - echo '' . esc_html( preg_replace( '##i', ', ', $the_order->get_formatted_billing_address() ) ) .''; - else - echo '–'; - - if ( $the_order->payment_method_title ) - echo '' . __( 'Via', 'woocommerce' ) . ' ' . esc_html( $the_order->payment_method_title ) . ''; - break; case 'order_items' : printf( '' . _n( '%d item', '%d items', sizeof( $the_order->get_items() ), 'woocommerce' ) . '', sizeof( $the_order->get_items() ) ); diff --git a/templates/emails/plain/email-addresses.php b/templates/emails/plain/email-addresses.php index ff9a6723c37..327ab528b4e 100644 --- a/templates/emails/plain/email-addresses.php +++ b/templates/emails/plain/email-addresses.php @@ -12,12 +12,11 @@ if ( ! defined( 'ABSPATH' ) ) { } echo "\n" . __( 'Billing address', 'woocommerce' ) . ":\n"; -echo $order->get_formatted_billing_address() . "\n\n"; +echo preg_replace( '##i', ', ', $order->get_formatted_billing_address() ) . "\n\n"; if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) { echo __( 'Shipping address', 'woocommerce' ) . ":\n"; - echo $shipping . "\n\n"; - + echo preg_replace( '##i', ', ', $shipping ) . "\n\n"; }