Merge pull request #302 from jeherve/fix/warning-webfinger-no-user

This commit is contained in:
Matthias Pfefferle 2023-04-10 16:41:40 +02:00 committed by GitHub
commit 15adf639a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,9 @@ class Webfinger {
}
$user = \get_user_by( 'id', $user_id );
if ( ! $user ) {
return '';
}
return $user->user_login . '@' . \wp_parse_url( \home_url(), \PHP_URL_HOST );
}