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
版权声明:本文标题:Multisite - Lost Password Link is for wrong site 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744619583a2615939.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论