public function fixSiteUrlFilter($url, $path, $scheme)
    {
        if (strpos($url, $this->wpDirectoryPath)) {
            return $url;
        }

        $wordpressUrl = ['/(wp-login\.php)/', '/(wp-admin)/'];
        $multiSiteUrl = [trim($this->wpDirectoryPath, '/').'/wp-login.php', trim($this->wpDirectoryPath, '/').'/wp-admin'];

        return preg_replace($wordpressUrl, $multiSiteUrl, $url, 1);
    }
public function fixSiteUrlFilter($url, $path, $scheme)
    {
        if (strpos($url, $this->wpDirectoryPath)) {
            return $url;
        }

        $wordpressUrl = ['/(wp-login\.php)/', '/(wp-admin)/'];
        $multiSiteUrl = [trim($this->wpDirectoryPath, '/').'/wp-login.php', trim($this->wpDirectoryPath, '/').'/wp-admin'];

        return preg_replace($wordpressUrl, $multiSiteUrl, $url, 1);
    }
public function fixSiteUrlFilter ( $ url , $ path , $ scheme ) { if ( strpos ( $ url , $ this -> wpDirectoryPath ) ) { return $ url ; } $ wordpressUrl = [ '/(wp-login\.php)/' , '/(wp-admin)/' ] ; $ multiSiteUrl = [ trim ( $ this -> wpDirectoryPath , '/' ) . '/wp-login.php' , trim ( $ this -> wpDirectoryPath , '/' ) . '/wp-admin' ] ; return preg_replace ( $ wordpressUrl , $ multiSiteUrl , $ url , 1 ) ; }
Set the right path for wp-login and wp-admin.

@param string      $url
@param string      $path
@param string|null $scheme

@return string
Set the right path for wp - login and wp - admin .