Multisite – Lost Password Link is for wrong site


We are setting up a second site on a multisite installation, and have noticed on the new site, that the ‘lost password’ and subsequent reset password links are pointing to the original site.

In the second site, I have added a plugin which just does this.

$current_network = get_network();
return print_r($current_network, true);

This does return the 1st network details – but maybe it always does.

The network_site_url function has a check for is_multisite – which as far as I can see, this is what it needs to do – grabbing the site_url would work, but it skips past this and does the get_network() call.

if ( ! is_multisite() ) {
    return site_url( $path, $scheme );

The details in the Network Admin/Sites are correct for both sites.

Is there anywhere I need to set something?

StripyTiger 4 years 2020-03-30T12:51:18-05:00 0 Answers 81 views 0

Leave an answer