From 7ae41bb4edf60f5fcc0169776e53c3bbca1d2411 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 11 Sep 2014 11:11:22 +0100 Subject: [PATCH] Fix - Ensure shipping address gets displayed - fixes needs_shipping_address() method. --- includes/abstracts/abstract-wc-order.php | 5 +++-- readme.txt | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/abstracts/abstract-wc-order.php b/includes/abstracts/abstract-wc-order.php index 89d85382c5c..5ac640c4edb 100644 --- a/includes/abstracts/abstract-wc-order.php +++ b/includes/abstracts/abstract-wc-order.php @@ -2434,10 +2434,9 @@ abstract class WC_Abstract_Order { /** * Checks if an order needs display the shipping address, based on shipping method * - * @return boolean|null + * @return boolean */ public function needs_shipping_address() { - $hide = apply_filters( 'woocommerce_order_hide_shipping_address', array( 'local_pickup' ), $this ); $needs = false; @@ -2448,6 +2447,8 @@ abstract class WC_Abstract_Order { break; } } + + return $needs; } /** diff --git a/readme.txt b/readme.txt index e2647928e96..01a669c5c46 100644 --- a/readme.txt +++ b/readme.txt @@ -130,7 +130,9 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc == Changelog == += 2.2.3 = * Fix - Order status translation in admin and account page. +* Fix - Ensure shipping address gets displayed - fixes needs_shipping_address() method. * Tweak - Display of locale information on system status page. = 2.2.2 - 11/09/2014 =