Fix set_to_base deprecated call

This commit is contained in:
Justin Shreve 2016-03-17 13:28:40 -07:00
parent 9f998b01b1
commit d98299778e
2 changed files with 2 additions and 3 deletions

View File

@ -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 ) );
} }
/** /**

View File

@ -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();
} }
/** /**