humanmade / Mercator

WordPress multisite domain mapping for the modern era.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Localize forgot password link

spacedmonkey opened this issue · comments

If you are www.site1.com and you click on the forgotten password link, it takes you to www.mainsite.com/wp-login.php?action=lostpassword . This is confusing, as this url as not the same as the one they came from and the users may think that this url is an error. In my tests, if go to www.site1.com/wp-login.php?action=lostpassword it seems to work.

This should be as simple as this

add_filter( 'lostpassword_url', __NAMESPACE__ . '\\mangle_url', -10, 4 );

i added this to the mu plugins directory https://gist.github.com/eteubert/293e07a49f56f300ddbb

its not quite that simple @spacedmonkey however, with a function I created for another issue resolution, I was able to do something very similar to fix. Will commit and send in my PR. If you want to try our fork to see if it fixes it for you, you may.
https://github.com/fansided/Mercator