I’ve setup a multisite network with a few subdomain sites.
When testing the lost password feature on one of the subdomain sites, lets call it site1.example.com, I received a password reset confirmation email with the following format:
Someone has asked to reset the password for the following site and username.
To reset your password visit the following address, otherwise just ignore this email and nothing will happen.
Note that it is defaulting to example.com instead of site1.example.com.
I noticed in wp-login.php that the message is formatted using network_site_url, so I simply changed it to site_url and I now get the correct subdomain links in the email… ie.
Is this a minor bug, or is the network site url used for some reason I’m not understanding? Is my simple fix correct, or is there some potential side effect I’m missing?
- The topic ‘Password reset email contains link to network site, not specific subdomain’ is closed to new replies.