admin管理员组

文章数量:1389897

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?

本文标签: MultisiteLost Password Link is for wrong site