wp_lostpassword_url not escaped
I have ajax login form, and a lost password link that gets it’s url with wp_lostpassword_url()
function.
When I validate the page I get
Error: & did not start a character reference. (& probably should have been escaped as &.)
On line where that link is. Can that be fixed somehow?
I have woocommerce active so it sends me to woocommerce page for login.
I could create a custom function that will send user to default forgotten password page
mysite.com/theme/wp-login.php?action=lostpassword
But that would be a last resort solution.
EDIT:
https://github.com/woothemes/woocommerce/search?utf8=%E2%9C%93&q=wc_lostpassword_url
The function has to be escaped properly with esc_url()
.
Leave an answer