Fix - Ensure shipping address gets displayed - fixes needs_shipping_address() method.

This commit is contained in:
Mike Jolley 2014-09-11 11:11:22 +01:00
parent edd37f3d20
commit 7ae41bb4ed
2 changed files with 5 additions and 2 deletions

View File

@ -2434,10 +2434,9 @@ abstract class WC_Abstract_Order {
/** /**
* Checks if an order needs display the shipping address, based on shipping method * Checks if an order needs display the shipping address, based on shipping method
* *
* @return boolean|null * @return boolean
*/ */
public function needs_shipping_address() { public function needs_shipping_address() {
$hide = apply_filters( 'woocommerce_order_hide_shipping_address', array( 'local_pickup' ), $this ); $hide = apply_filters( 'woocommerce_order_hide_shipping_address', array( 'local_pickup' ), $this );
$needs = false; $needs = false;
@ -2448,6 +2447,8 @@ abstract class WC_Abstract_Order {
break; break;
} }
} }
return $needs;
} }
/** /**

View File

@ -130,7 +130,9 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog == == Changelog ==
= 2.2.3 =
* Fix - Order status translation in admin and account page. * 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. * Tweak - Display of locale information on system status page.
= 2.2.2 - 11/09/2014 = = 2.2.2 - 11/09/2014 =