[wp-trac] [WordPress Trac] #21352: wp_lostpassword_url() on multisite
WordPress Trac
noreply at wordpress.org
Tue Mar 11 14:51:10 UTC 2014
#21352: wp_lostpassword_url() on multisite
------------------------------------+-----------------------------
Reporter: philly max | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Login and Registration | Version: 3.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite
------------------------------------+-----------------------------
Comment (by strangerstudios):
I've been working on this for a site. I'm not sure the attached diffs make
sense anymore. (They rely on $current_user to figure out the URL, but
people aren't logged in when requesting a password reset. Maybe I'm
missing something.)
Anyway, on the site I'm working on, here is the plugin I put together that
updates the lost password URL and the reset URL in the email that goes out
to be for the site where the lost password request originated rather than
the primary domain. It basically swaps out network_site_url() for
site_url().
https://gist.github.com/strangerstudios/9487278
I could see cases where you do want password resets to come from/go to the
primary domain. So maybe this is best solved by a plugin. My plugin above
could also be adjusted to work in the case where you want subsite admin
resets to happen on their own blogs.
Open to suggestions for the plugin as well as ways this might be
incorporated into core. Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21352#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list