From 9bb669c37e1c4a3f66a3109dfc68cb483a41e70f Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 9 May 2023 12:22:18 +1000 Subject: [PATCH] Explicitly refer to the no-namespace constant. --- inc/class-utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/class-utils.php b/inc/class-utils.php index b84a46ad2..c32983769 100644 --- a/inc/class-utils.php +++ b/inc/class-utils.php @@ -32,8 +32,8 @@ public static function render( string $view, array $params = [] ): void { public static function create_webauthn_server(): ServerInterface { $builder = new ServerBuilder(); $relay = new RelyingParty( get_bloginfo( 'name' ), self::get_u2f_app_id() ); - if ( COOKIE_DOMAIN ) { - $relay->setId( ltrim( COOKIE_DOMAIN, '.' ) ); + if ( \COOKIE_DOMAIN ) { + $relay->setId( ltrim( \COOKIE_DOMAIN, '.' ) ); } $builder->setRelyingParty( $relay ); $builder->setCredentialStore( new WebAuthn_Credential_Store() );