From 8fbe61aa8ba9014ea30a10e6ca78d41a8af67377 Mon Sep 17 00:00:00 2001 From: Gerhard Potgieter Date: Sun, 14 Jul 2019 20:25:32 +0200 Subject: [PATCH] Revert "Allow filtering formatted shipping address" --- includes/class-wc-order.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-order.php b/includes/class-wc-order.php index ca87426262e..e392cad1d89 100644 --- a/includes/class-wc-order.php +++ b/includes/class-wc-order.php @@ -889,9 +889,10 @@ class WC_Order extends WC_Abstract_Order { * @return string */ public function get_formatted_shipping_address( $empty_content = '' ) { - $address = apply_filters( 'woocommerce_order_formatted_shipping_address', $this->get_address( 'shipping' ), $this ); + $address = ''; if ( $this->has_shipping_address() ) { + $address = apply_filters( 'woocommerce_order_formatted_shipping_address', $this->get_address( 'shipping' ), $this ); $address = WC()->countries->get_formatted_address( $address ); }