Fix not returning the cached token

This commit is contained in:
Emili Castells Guasch 2024-08-07 09:51:12 +02:00
parent b42e9436ae
commit 8411ef2106

View file

@ -81,7 +81,7 @@ class SdkClientToken {
*/
public function sdk_client_token(): string {
if ( $this->cache->has( self::CACHE_KEY ) ) {
$this->cache->get( self::CACHE_KEY );
return $this->cache->get( self::CACHE_KEY );
}
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized