Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function get_token( WP_REST_Request $request ) {
'success' => false,
'statusCode' => 401,
'code' => $error_code,
'message' => strip_tags( $user->get_error_message( $error_code ) ),
'message' => strip_tags('Authentication failed: '.$error_code),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing code removes HTML tags already, so I'm not sure what this PR actually changes (other than removing a potentially more helpful error message for the end-user)…?

'data' => array(),
),
401
Expand Down