Update class-wc-session-handler.php
This commit is contained in:
parent
4a725f3f3e
commit
4266cc9eaa
|
@ -97,7 +97,7 @@ class WC_Session_Handler extends WC_Session {
|
|||
$guest_session_id = $this->_customer_id;
|
||||
$this->_customer_id = get_current_user_id();
|
||||
$this->_dirty = true;
|
||||
$this->save_data($guest_session_id);
|
||||
$this->save_data( $guest_session_id );
|
||||
$this->set_customer_session_cookie( true );
|
||||
}
|
||||
|
||||
|
@ -254,7 +254,7 @@ class WC_Session_Handler extends WC_Session {
|
|||
|
||||
wp_cache_set( $this->get_cache_prefix() . $this->_customer_id, $this->_data, WC_SESSION_CACHE_GROUP, $this->_session_expiration - time() );
|
||||
$this->_dirty = false;
|
||||
if (get_current_user_id() !== $old_session_key) {
|
||||
if ( get_current_user_id() !== $old_session_key ) {
|
||||
$this->delete_session( $old_session_key );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue