mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Revert #2283
This commit is contained in:
parent
4f47b382c5
commit
7778cfafed
1 changed files with 0 additions and 4 deletions
|
@ -80,10 +80,6 @@ class SdkClientToken {
|
|||
* @throws RuntimeException If something unexpected happens.
|
||||
*/
|
||||
public function sdk_client_token(): string {
|
||||
if ( $this->cache->has( self::CACHE_KEY ) ) {
|
||||
return $this->cache->get( self::CACHE_KEY );
|
||||
}
|
||||
|
||||
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
||||
$domain = wp_unslash( $_SERVER['HTTP_HOST'] ?? '' );
|
||||
$domain = preg_replace( '/^www\./', '', $domain );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue