Because the authenticate hook is being called for the first time when the page is loaded it would always display an error because the POST body would be empty. Now we check if there is already an error (which seems to be product by WP for GET requests) and then return that.
Because the
authenticate
hook is being called for the first time when the page is loaded it would always display an error because thePOST
body would be empty. Now we check if there is already an error (which seems to be product by WP for GET requests) and then return that.fixes #97
https://wordpress.stackexchange.com/a/395662