Fixes erroneous 403 response when a password contains a single quote.
When attempting to authenticate with a (correct) password containing quotes, the API returns "403 Forbidden":
{ "code": "[jwt_auth] incorrect_password", "message": "...", "data": { "status": 403 } }
Fixes erroneous 403 response when a password contains a single quote.
When attempting to authenticate with a (correct) password containing quotes, the API returns "403 Forbidden":
{ "code": "[jwt_auth] incorrect_password", "message": "...", "data": { "status": 403 } }
Using wp_slash (https://developer.wordpress.org/reference/functions/wp_slash/) to make sure the password is handled correctly.