diff --git a/templates/indieauth-authenticate-form.php b/templates/indieauth-authenticate-form.php index f02e046..8f81c8b 100644 --- a/templates/indieauth-authenticate-form.php +++ b/templates/indieauth-authenticate-form.php @@ -6,7 +6,7 @@ '', $login_errors ); -$user_website = esc_url( get_url_from_user( $current_user->ID ) ); +$user_website = esc_url( get_url_from_user( wp_get_current_user()?->ID ) ); if ( ! $user_website ) { \esc_html_e( 'The application cannot sign you in as WordPress cannot determine the current user', 'indieauth' ); \login_footer();