diff --git a/includes/class-wc-customer.php b/includes/class-wc-customer.php index 3b8dde5820f..98e350dc11f 100644 --- a/includes/class-wc-customer.php +++ b/includes/class-wc-customer.php @@ -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. }