I\'m trying to replace the default wp-login with my custom login form. The hard part is to make the redirect to referring page work.
I was able to find various snippe