Custom password form issue
-
Having a password protected page I used the password form in it.
It works perfectly locally but online the form – after submitting – redirects to a blank page with wrong url mysiteurl/login.php?action=postpass. To fix it I had to add a hidden field to the form:
$output .= '<input type="hidden" name="_wp_http_referer" value="' . get_permalink(). '">';
It’s just like the form does not recognize the url from which the submit is activated without that extra field.
It is a weird behaviour, isn’t it? Do anybody can help me to understand what’s due to?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.