From 80dbc961b32681f63c9da7cf912789f2f2fe1acd Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Thu, 6 Feb 2020 16:14:04 -0800 Subject: [PATCH] Superflous/confusing line $user_id is already false here. --- src/Provider/Authentication.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Provider/Authentication.php b/src/Provider/Authentication.php index 0bbc92f..ab35c1c 100644 --- a/src/Provider/Authentication.php +++ b/src/Provider/Authentication.php @@ -114,7 +114,6 @@ public function determine_current_user( $user_id ) { $user_id = $server->authenticate( $this->request ); } catch ( AuthenticationException $e ) { $this->auth_status = $e; - $user_id = false; add_filter( 'rest_authentication_errors', [ $this, 'get_authentication_errors' ] ); }