Merge pull request #17444 from shivapoudel/fix/empty-content

Fix - Undefined variable: empty_content in order screen
This commit is contained in:
Mike Jolley 2017-10-30 12:25:52 +00:00 committed by GitHub
commit 7ec2c5a736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -814,10 +814,10 @@ class WC_Order extends WC_Abstract_Order {
/**
* Get a formatted billing address for the order.
*
* @param string $empty_html Content to show if no address is present. @since 3.3.0.
* @param string $empty_content Content to show if no address is present. @since 3.3.0.
* @return string
*/
public function get_formatted_billing_address( $empty_html = '' ) {
public function get_formatted_billing_address( $empty_content = '' ) {
$address = apply_filters( 'woocommerce_order_formatted_billing_address', $this->get_address( 'billing' ), $this );
$address = WC()->countries->get_formatted_address( $address );
@ -827,10 +827,10 @@ class WC_Order extends WC_Abstract_Order {
/**
* Get a formatted shipping address for the order.
*
* @param string $empty_html Content to show if no address is present. @since 3.3.0.
* @param string $empty_content Content to show if no address is present. @since 3.3.0.
* @return string
*/
public function get_formatted_shipping_address( $empty_html = '' ) {
public function get_formatted_shipping_address( $empty_content = '' ) {
$address = '';
if ( $this->has_shipping_address() ) {