Skip to content

Commit

Permalink
Explicitly refer to the no-namespace constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored May 9, 2023
1 parent 9f7fbfb commit 9bb669c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/class-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down

0 comments on commit 9bb669c

Please sign in to comment.