This commit is contained in:
Mike Jolley 2016-08-09 11:16:13 +01:00
parent 4ac4bcaa08
commit 01a4c81094
1 changed files with 2 additions and 2 deletions

View File

@ -109,10 +109,10 @@ class WC_Customer extends WC_Legacy_Customer {
if ( $customer instanceof WC_Customer ) {
$this->_is_user = true;
$this->read( absint( $customer->get_id() ) );
} else if ( is_numeric( $customer ) ) {
} elseif ( is_numeric( $customer ) ) {
$this->_is_user = true;
$this->read( $customer );
} else if ( empty( $customer ) ) {
} elseif ( empty( $customer ) ) {
$this->_is_user = true; // unless load_session gets called after.
}