Skip to content

Commit 2b93c07

Browse files
creative-andrewAndres A
andauthored
Adds noop for set_customer_session_cookie. (#710)
* Added noop for set_customer_session_cookie. * fixup! Added noop for set_customer_session_cookie. --------- Co-authored-by: Andres A <[email protected]>
1 parent bde5fc5 commit 2b93c07

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

includes/utils/class-ql-session-handler.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,4 +416,14 @@ public function reload_data() {
416416
\WC_Cache_Helper::invalidate_cache_group( WC_SESSION_CACHE_GROUP );
417417
$this->_data = $this->get_session( $this->_customer_id );
418418
}
419+
420+
/**
421+
* Noop for \WC_Session_Handler method.
422+
*
423+
* Prevents potential crticial errors when calling this method.
424+
*
425+
* @param bool $set Should the session cookie be set.
426+
*/
427+
public function set_customer_session_cookie( $set ) {}
428+
419429
}

0 commit comments

Comments
 (0)