最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Multisite - Lost Password Link is for wrong site

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论