Fix set_to_base deprecated call
This commit is contained in:
parent
9f998b01b1
commit
d98299778e
|
@ -963,7 +963,6 @@ class WC_Customer extends WC_Legacy_Customer {
|
||||||
}
|
}
|
||||||
|
|
||||||
unset( $this->_data['password'] ); // password is write only, never ever read it
|
unset( $this->_data['password'] ); // password is write only, never ever read it
|
||||||
error_log( print_r ( $this, 1 ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -116,8 +116,8 @@ abstract class WC_Legacy_Customer extends WC_Data {
|
||||||
* Set customer address to match shop base address.
|
* Set customer address to match shop base address.
|
||||||
*/
|
*/
|
||||||
public function set_to_base() {
|
public function set_to_base() {
|
||||||
_deprecated_function( 'WC_Customer::set_to_base', '2.7', 'WC_Customer::set_address_to_base' );
|
_deprecated_function( 'WC_Customer::set_to_base', '2.7', 'WC_Customer::set_billing_address_to_base' );
|
||||||
$this->set_address_to_base();
|
$this->set_billing_address_to_base();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue